title: Importing urllib in Python 3.5
body: <p>I have the following code: </p>
  
  <pre><code>import urllib
  import wget as wget
  request = urllib.request.Request(url)
  </code></pre>
  
  <p>For the last line PyCharm shows a warning: </p>
  
  <blockquote>
    <p>Cannot find reference 'request' in '__init__.py'</p>
  </blockquote>
  
  <p>The code works finde though, I receive a reply from the server I query. </p>
  
  <p>The import <code>import wget as wget</code> is being shown as unused. When I remove that import, I get the following exception at runtime: </p>
  
  <blockquote>
    <p>AttributeError: module 'urllib' has no attribute 'request'</p>
  </blockquote>
  
  <p>Can somebody explain to me </p>
  
  <ol>
  <li>How these two things are connected</li>
  <li>Why <code>urllib.request.Request</code> is obviously wrong(?) despite being <a href="https://docs.python.org/3/library/urllib.request.html" rel="nofollow">documented here</a>?</li>
  </ol>