code: def cftype_to_value(cftype):
      
      if not cftype:
          return None
      typeID = cf.CFGetTypeID(cftype)
      if typeID in known_cftypes:
          convert_function = known_cftypes[typeID]
          return convert_function(cftype)
      else:
          return cftype
docs: Convert a CFType into an equivalent python type.
      The convertible CFTypes are taken from the known_cftypes
      dictionary, which may be added to if another library implements
      its own conversion methods.