title: Relative import works with from but fails with import
body: <p>I need to use a relative import in python, so I do:</p>
  
  <pre><code>from .MyModule import MyClass
  </code></pre>
  
  <p>and it works :)</p>
  
  <p>However sometimes I don't want to explicitly import <code>MyClass</code>, but instead import <code>MyModule</code> and access my class by doing <code>MyModule.MyClass</code></p>
  
  <p>So I would love to do:</p>
  
  <pre><code>import .MyModule
  
  my_instance = MyModule.MyClass()
  </code></pre>
  
  <p>But it appears that putting the dot after <code>import</code>  is an invalid syntax, even though it is valid after <code>from</code></p>
  
  <p>I want to keep the access of <code>MyClass</code> as part of <code>MyModule</code>, so I'm forced to do <code>MyModule.MyClass</code> and at the same time I need do a relative import of <code>MyModule</code></p>
  
  <p>How can I achieve that</p>