def asmodule(module):
 if isinstance(module, str):
  module = __import__(module, fromlist=[])
 return module

def asmodule ( module ) : if isinstance ( module , str ) : module = __import__ ( module , fromlist = [ ] ) return module
return the module references by module name .