python check if input contains number