title: Python Import class in __init__.py from file in same package
body: <p>I feel like I should know this, having programmed in Python for as long as I have, but I'm constantly learning new things about the fine lanuaguge. The question I have (which may very well be a duplicate, however I haven't been able to find this same case) is this. I have a file layout like this:</p>
  
  <pre><code>websocket/
      __init__.py
      client.py
      server.py
  </code></pre>
  
  <p>How can I import classes that are in the file <code>__init__.py</code> from <code>client.py</code> or <code>server.py</code>? Nice and simple :P Thanks in advance! My question isn't a duplicate of <a href="/questions/582723">this</a> because I am importing from inside the package, and at any rate, doing what the people did in the answer did not help at all.</p>