python check if input value is integer