title: Convert all relative imports to absolute automatically in python
body: <p>I am trying to structure my <em>python 2.7</em> project (which entails several subdirectories) correctly. 
  I have added <em>__init__.py</em> files on every level, and in the case of imports it seems that the <em>"best" practice</em> is to use <strong>absolute</strong> imports of the sort:</p>
  
  <pre><code>import top_package_folder.package_subfolder.module_name
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>import .module_name
  </code></pre>
  
  <p>even when my code lives in the package_subfolder directory.</p>
  
  <p>As I learned about this recently, I am now looking for a way to automatically convert all those relative imports to absolute ones.</p>
  
  <p><em>(I tried autopep8 and could not manage to make imports absolute.)</em></p>
  
  <p>Thanks in advance.</p>