def GetClassForCLSID(clsid):
 clsid = str(clsid)
 if CLSIDToClass.HasClass(clsid):
  return CLSIDToClass.GetClass(clsid)
 mod = GetModuleForCLSID(clsid)
 if (mod is None):
  return None
 try:
  return CLSIDToClass.GetClass(clsid)
 except KeyError:
  return None

def GetClassForCLSID ( clsid ) : clsid = str ( clsid ) if CLSIDToClass . HasClass ( clsid ) : return CLSIDToClass . GetClass ( clsid ) mod = GetModuleForCLSID ( clsid ) if ( mod is None ) : return None try : return CLSIDToClass . GetClass ( clsid ) except KeyError : return None
get a python class for a clsid given a clsid .