code: def module_to_dict(module):
      
  
      lot = [(key, module.__getattribute__(key)) for key in module.__all__]
      ret = dict(lot)
      return ret
docs: Creates a dictionary whose keys are module.__all__
  
      Returns: {"(attribute name)": attribute, ...}