code: def datatype(dbtype, description, cursor):
      
      dt = cursor.db.introspection.get_field_type(dbtype, description)
      if type(dt) is tuple:
          return dt[0]
      else:
          return dt
docs: Google AppEngine Helper to convert a data type into a string.