Not directly part of this PR, but I understand that use of `__import__` is discouraged in favor of `importlib.import_module`.

https://docs.python.org/3/library/functions.html#__import__