def RegisterClassFactories(clsids, flags=None, clsctx=None):
 if (flags is None):
  flags = (pythoncom.REGCLS_MULTIPLEUSE | pythoncom.REGCLS_SUSPENDED)
 if (clsctx is None):
  clsctx = pythoncom.CLSCTX_LOCAL_SERVER
 ret = []
 for clsid in clsids:
  if (clsid[0] not in ['-', '/']):
   factory = pythoncom.MakePyFactory(clsid)
   regId = pythoncom.CoRegisterClassObject(clsid, factory, clsctx, flags)
   ret.append((factory, regId))
 return ret

def RegisterClassFactories ( clsids , flags = None , clsctx = None ) : if ( flags is None ) : flags = ( pythoncom . REGCLS_MULTIPLEUSE | pythoncom . REGCLS_SUSPENDED ) if ( clsctx is None ) : clsctx = pythoncom . CLSCTX_LOCAL_SERVER ret = [ ] for clsid in clsids : if ( clsid [ 0 ] not in [ '-' , '/' ] ) : factory = pythoncom . MakePyFactory ( clsid ) regId = pythoncom . CoRegisterClassObject ( clsid , factory , clsctx , flags ) ret . append ( ( factory , regId ) ) return ret
given a list of clsid .