importing modules from packages in python, such a basic issue I guess I can't even find the answer anyhwere
<p>So my first python program, I downloaded the macholib package from PYPI, then unzipped it and ran installed the setup.py using python install, now I'm trying to run a program where I first import the macholib, then when I try to access methods like Macho, it gives me an error saying macholib module has no attributes called Macho.
My understanding is macholib is a package and not a module or something, hence I cant use the contents of the package.
Please answer, I've wasted too much time on such a simple newbie issue.
running a mac with the latest version of python.</p>

<p>Code:</p>

<pre><code>import sys
import macholib
MachO(DivXInstaller.dmg) 
</code></pre>

<p>I tried macholib.MachO(DivXInstaller.dmg) and macholib.MachO.MachO(DivXInstaller.dmg)</p>

<pre><code>Error for python test.py 
Traceback (most recent call last):
  File "test.py", line 3, in &lt;module&gt;
    MachO(DivXInstaller.dmg)
NameError: name 'MachO' is not defined
</code></pre>
