python check if input is whole number