import pkgutil


def list_submodules(module_path, module_prefix):
    """
    For given module, return list of full module path names for all submodules
    recursively.
    """
    return [
        name
        for _, name, _ in pkgutil.walk_packages(
            path=[module_path], prefix=module_prefix
        )
    ]