importlib.machinery. Also make the methods either class or staticmethods.
Attach a file by drag & drop or click to upload