  
import importlib
import pkgutil
__all__ = []
for loader, module_name, is_pkg in  pkgutil.walk_packages(__path__):
    module = importlib.import_module('.'+module_name,package=__name__)
    try: 
        globals().update({k: getattr(module, k) for k in module.__all__})
        __all__ += module.__all__
    except AttributeError: continue
[(5, 'pkgutil.walk_packages', 'pkgutil.walk_packages', False, 'import pkgutil\n'), (6, 'importlib.import_module', 'importlib.import_module', False, 'import importlib\n')]