title: importlib.import_module adding * to globals?
body: <p>Trying to dynamically add settings attributes to <code>globals()</code> according to some dynamic environment variables.</p>
  
  <pre><code>import os
  from importlib import import_module
  
  
  # To support environment variables as the means of specifying
  # the target environment as an alternative to using the --settings flag
  # where MY_ENV is 'local', 'development', 'staging', 'production'
  if os.environ.get('MY_ENV'):
      env = os.environ.get('MY_ENV')
      import_module('my.settings.%s' % env, '*')
  </code></pre>
  
  <p>Its understood that <code>import_module</code> needs to be assigned to a variable:</p>
  
  <pre><code>foo = import_module('path.to.package', 'bar')
  </code></pre>
  
  <p>and that:</p>
  
  <pre><code>globals()[foo] = foo
  </code></pre>
  
  <p>can add this to the <code>global</code> scope.</p>
  
  <p>However, what is to be done with the wildcard <code>*</code>?</p>
  
  <pre><code>globals()[*] = import_module('path.to.package', '*')
  </code></pre>
  
  <p>Obviously, the above causes a syntax error.</p>