def EnsureModuleForTypelibInterface(typelib_ob, progressInstance=None, bForDemand=bForDemandDefault, bBuildHidden=1):
 tla = typelib_ob.GetLibAttr()
 guid = tla[0]
 lcid = tla[1]
 major = tla[3]
 minor = tla[4]
 if bForDemand:
  demandGeneratedTypeLibraries[(str(guid), lcid, major, minor)] = typelib_ob
 try:
  return GetModuleForTypelib(guid, lcid, major, minor)
 except ImportError:
  pass
 return MakeModuleForTypelibInterface(typelib_ob, progressInstance, bForDemand, bBuildHidden)

def EnsureModuleForTypelibInterface ( typelib_ob , progressInstance = None , bForDemand = bForDemandDefault , bBuildHidden = 1 ) : tla = typelib_ob . GetLibAttr ( ) guid = tla [ 0 ] lcid = tla [ 1 ] major = tla [ 3 ] minor = tla [ 4 ] if bForDemand : demandGeneratedTypeLibraries [ ( str ( guid ) , lcid , major , minor ) ] = typelib_ob try : return GetModuleForTypelib ( guid , lcid , major , minor ) except ImportError : pass return MakeModuleForTypelibInterface ( typelib_ob , progressInstance , bForDemand , bBuildHidden )
check we have support for a type library .