def GetModuleForProgID(progid):
 try:
  iid = pywintypes.IID(progid)
 except pywintypes.com_error:
  return None
 return GetModuleForCLSID(iid)

def GetModuleForProgID ( progid ) : try : iid = pywintypes . IID ( progid ) except pywintypes . com_error : return None return GetModuleForCLSID ( iid )
get a python module for a program id given a program id .