def GetUnregisterServerKeys(clsid, progID=None, verProgID=None, customKeys=None):
 ret = [(('CLSID\\%s' % str(clsid)), win32con.HKEY_CLASSES_ROOT)]
 if verProgID:
  ret.append((verProgID, win32con.HKEY_CLASSES_ROOT))
 if progID:
  ret.append((progID, win32con.HKEY_CLASSES_ROOT))
 ret.append((('AppID\\%s' % str(clsid)), win32con.HKEY_CLASSES_ROOT))
 if customKeys:
  ret = (ret + customKeys)
 return ret

def GetUnregisterServerKeys ( clsid , progID = None , verProgID = None , customKeys = None ) : ret = [ ( ( 'CLSID\\%s' % str ( clsid ) ) , win32con . HKEY_CLASSES_ROOT ) ] if verProgID : ret . append ( ( verProgID , win32con . HKEY_CLASSES_ROOT ) ) if progID : ret . append ( ( progID , win32con . HKEY_CLASSES_ROOT ) ) ret . append ( ( ( 'AppID\\%s' % str ( clsid ) ) , win32con . HKEY_CLASSES_ROOT ) ) if customKeys : ret = ( ret + customKeys ) return ret
given a server .