def _GetModule(fname):
 mod_name = ('win32com.gen_py.%s' % fname)
 mod = __import__(mod_name)
 return sys.modules[mod_name]

def _GetModule ( fname ) : mod_name = ( 'win32com.gen_py.%s' % fname ) mod = __import__ ( mod_name ) return sys . modules [ mod_name ]
given the name of a module in the gen_py directory .