Check If Input Is Character Python