Fix add-ons with Python 3.12 by replacing "imp" with "importlib"