Ouch. According to the documentation for the imp module, it is now deprecated:
Deprecated since version 3.4, will be removed in version 3.12: The
impmodule is deprecated in favor ofimportlib.
Looks like we’re going to have to make a few changes…