title: Python 3.8 resolve import paths
body: <p>Till Python 3.7, whenever I had a package (eg: <code>mypackage</code>) both in <code>site-packages</code> and in a directory specified as <code>PYTHONPAH</code>, importing it would result in Python loading it from the PYTHOPATH dir.</p>
  <p>For instance, with the following directories</p>
  <pre><code>/site-packages
      ...
      mypackage
      ...
  
  /somedir
      /mylibraries
          ...
          mypackage
          ...
  </code></pre>
  <p>and setting <code>PYTHONPATH=/somedir/mylibraries</code>, the following code would import it <code>/somedir/mylibraries</code></p>
  <pre><code>import sys
  print(sys.path) # [..., '/somedir/mylibraries' ,...]
  
  import mypackage
  print(mypackage.__path__) # '/somedir/mylibraries/mypackage'
  </code></pre>
  <p>After upgrading to Python 3.8, some major about path resolution seems to be changed:</p>
  <pre><code>import sys
  print(sys.path) # [..., '/somedir/mylibraries' ,...]
  
  import mypackage
  print(mypackage.__path__) # '.../site-packages/mypackage'
  </code></pre>
  <p>How to import libraries from the PYTHONPAH in Python 3.8?</p>