Python Check If Input Is Number Or String