import pkg_resources
for entrypoint in pkg_resources.iter_entry_points(group=
    'some.opaque.string.unique.to.origmodule'):
    pass
Python setup, install one module as a sub module of another module?