title: Importing modules dynamically in Python 3.X
body: <p>I would like to import a module from inside a functions. For example from this:</p>
  <pre><code>from directory.folder.module import module
  
  def import():   
      app.register_blueprint(module)
  </code></pre>
  <p>To this:</p>
  <pre><code>def import():   
      from directory.folder.module import module
  </code></pre>
  <p>But, without hardcoding it. For example:</p>
  <pre><code>def import():
      m = &quot;module&quot;
      from directory.folder.m import m
  </code></pre>
  <p>Is it possible? Thanks in advance</p>