def _do_imports(components):
 done = {}
 for name in components:
  if (name in done):
   continue
  r = _do_import(name)
  if (r is False):
   return False
  members = dict(inspect.getmembers(sys.modules[r]))
  done[name] = (r, sys.modules[r], members)
 return done

def _do_imports ( components ) : done = { } for name in components : if ( name in done ) : continue r = _do_import ( name ) if ( r is False ) : return False members = dict ( inspect . getmembers ( sys . modules [ r ] ) ) done [ name ] = ( r , sys . modules [ r ] , members ) return done
import each of the listed components returns map of component_name->name .