python check if input contains letters