Python Cmd module, subclassing issue
<p>I'm trying to work out what's not working in this code:</p>

<pre><code>#!/usr/bin/python

import cmd

class My_class (cmd.Cmd):
    """docstring for Twitter_handler"""
    def __init__(self):
     super(My_class, self).__init__()

if __name__ == '__main__':
    my_handler = My_class()
</code></pre>

<p>Here's the error I get</p>

<pre><code>Traceback (most recent call last):
  File "main.py", line 12, in &lt;module&gt;
    my_handler = My_class()
  File "main.py", line 9, in __init__
    super(My_class, self).__init__()
TypeError: super() argument 1 must be type, not classobj
</code></pre>

<p>If I change the superclass of "My_class" to an object it works fine. Where am I going wrong?</p>
