def lookup_casstype_simple(casstype):
 shortname = trim_if_startswith(casstype, apache_cassandra_type_prefix)
 try:
  typeclass = _casstypes[shortname]
 except KeyError:
  typeclass = mkUnrecognizedType(casstype)
 return typeclass

def lookup_casstype_simple ( casstype ) : shortname = trim_if_startswith ( casstype , apache_cassandra_type_prefix ) try : typeclass = _casstypes [ shortname ] except KeyError : typeclass = mkUnrecognizedType ( casstype ) return typeclass
given a cassandra type name .