def _import_module_functions(module_path):
 functions_dict = {}
 module = __import__(module_path)
 for part in module_path.split('.')[1:]:
  module = getattr(module, part)
 for (k, v) in module.__dict__.items():
  try:
   if (v.__module__ != module_path):
    continue
   functions_dict[k] = v
  except AttributeError:
   pass
 return functions_dict

def _import_module_functions ( module_path ) : functions_dict = { } module = __import__ ( module_path ) for part in module_path . split ( '.' ) [ 1 : ] : module = getattr ( module , part ) for ( k , v ) in module . __dict__ . items ( ) : try : if ( v . __module__ != module_path ) : continue functions_dict [ k ] = v except AttributeError : pass return functions_dict
import a module and get the functions and return them in a dict .