title: How to reference to the top-level module in Python inside a package?
body: <p>In the below hierachy, is there a convenient and universal way to reference to the top_package using a generic term in all .py file below? I would like to have a consistent way to import other modules, so that even when the "top_package" changes name nothing breaks.</p>
  
  <p>I am not in favour of using the relative import like "..level_one_a" as relative path will be different to each python file below. I am looking for a way that:</p>
  
  <ol>
  <li>Each python file can have the same import statement for the same module in the package.</li>
  <li><p>A decoupling reference to "top_package" in any .py file inside the package, so whatever name "top_package" changes to, nothing breaks.</p>
  
  <pre><code>top_package/
    __init__.py
    level_one_a/
      __init__.py
      my_lib.py
      level_two/
        __init__.py
        hello_world.py
    level_one_b/
      __init__.py
      my_lib.py
    main.py
  </code></pre></li>
  </ol>