python check if input is not a number