title: python import * or a list from other level
body: <p>I'm trying to import a few classes from a module in another level. I can type all the classes, but I' trying to do it dynamically</p>
  
  <p>if I do:</p>
  
  <pre><code>from ..previous_level.module import *
      raise: SyntaxError: import * only allowed at module level
  </code></pre>
  
  <p>the same from myapp folder:</p>
  
  <pre><code>from myapp.previous_level.module import *
      raise: SyntaxError: import * only allowed at module level
  </code></pre>
  
  <p>So I thought:</p>
  
  <pre><code>my_classes = ['Class_Foo', 'Class_Bar']
  for i in my_classes:
      from ..previous_level.module import i
          raise: ImportError: cannot import name 'i'
  </code></pre>
  
  <p>and also:</p>
  
  <pre><code>my_classes = ['Class_Foo', 'Class_Bar']
  for i in my_classes:
      __import__('myapp').previous_level.module.y
      raise: AttributeError: module 'myapp.previous_level.module' has no attribute 'y'
  </code></pre>
  
  <p>I've tried <code>string format</code> , <code>getattr()</code> , <code>__getattr__</code> but no success.</p>
  
  <p>It's impossible to do import this way, or I'm doing something wrong?</p>