python check if input contains only numbers