title: How to import multiple different import using importlib on python?
body: <p>I have a python file that is beginning to have a lot of import statements like</p>
  <pre><code>from enum import auto
  </code></pre>
  <p>Let's say I have a file called a.py and a.py uses <code>from enum import auto</code>.
  Is there a way that I can create a separate file called <code>imports.py</code> that imports all the modules that I specify using importlib?</p>
  <p>I have tried the following with no success:</p>
  <pre><code>modules.append(importlib.import_module(auto, Package=enum))
  </code></pre>
  <p>(modules is an array that will hold the imported modules)</p>
  <p>The error says</p>
  <pre><code>Traceback (most recent call last):
     File &quot;.import.py&quot;, line 17, in &lt;module&gt;
        modules.append(importlib.import_module(auto,Package=enum))
  </code></pre>