A backport of Python 3.9's pkgutil.resolve_name.

Homepage:
https://github.com/graingert/pkgutil-resolve-name
