Why doesn't this Python work? Simple Oop
<pre><code>class UserDict: 
    def __init__(self, dict=None):             
        self.data = {}                         
        if dict is not None: self.update(dict)
</code></pre>

<p>I created a file "abc.py" and put above in it.</p>

<pre><code>&gt;&gt;&gt; import abc
&gt;&gt;&gt; d = abc.UserDict()
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
AttributeError: 'module' object has no attribute 'UserDict'
</code></pre>
