title: Importing packages in Python
body: <p>I am probably missing something obvious but anyway:</p>
  <p>When you import a package like <code>os</code> in Python, you can use any submodules/subpackages off the bat. For example this works:</p>
  <pre><code>&gt;&gt;&gt; import os
  &gt;&gt;&gt; os.path.abspath(...)
  </code></pre>
  <p>However, I have my own package which is structured as follows:</p>
  <pre><code>FooPackage/
    __init__.py
    foo.py
  </code></pre>
  <p>and here the same logic does not work:</p>
  <pre><code>&gt;&gt;&gt; import FooPackage
  &gt;&gt;&gt; FooPackage.foo
  AttributeError: 'module' object has no attribute 'foo'
  </code></pre>
  <p>What am I doing wrong?</p>