Python Check If An Input Is String