def gen_submodule_names(package):
for importer, modname, ispkg in pkgutil.walk_packages(<EOL>path=package.__path__,<EOL>prefix=package.__name__ + '<STR_LIT:.>',<EOL>onerror=lambda x: None):<EOL><INDENT>yield modname<EOL><DEDENT>
Walk package and yield names of all submodules

    :type  package: package
    :param package: The package to get submodule names of
    :returns: Iterator that yields names of all submodules of ``package``
    :rtype: Iterator that yields ``str``