python check if input is enter