pkgutil.walk_packages(path=None, prefix='', onerror=None)
Yields (module_finder, name, ispkg) for all modules recursively on path, or, if path is None, all accessible modules.
path should be either None or a list of paths to look for modules in.
prefix is a string to output on the front of every module name on output.
Note that this function must import all packages (not all modules!) on the given path, in order to access the __path__ attribute to find submodules.
onerror is a function which