Migrate from imp to importlib
The "imp" package let users implement the import statement, that is enabled dynamic loading of Python modules. The "imp" package was deprecated in an earlier version and finally removed in Python 3.12. The Python3 docs recommend moving to package "importlib" as a replacement.