def explore_module(package):
 module = importlib.import_module(package)
 if (not hasattr(module, '__path__')):
  return []
 for (_, name, _) in pkgutil.iter_modules(module.__path__, (package + '.')):
  (yield name)

def explore_module ( package ) : module = importlib . import_module ( package ) if ( not hasattr ( module , '__path__' ) ) : return [ ] for ( _ , name , _ ) in pkgutil . iter_modules ( module . __path__ , ( package + '.' ) ) : ( yield name )
explore the modules .