Get just a class name without module, etc
<p>I'm probably overlooking something simple.  Given an instance of a class, I'd like to get just the class name.  For example:</p>

<pre><code>class Foooo: pass
instance = Foooo()

print("instance.__class__ = "+str(instance.__class__))
print("Just the class name: "+str(instance.__class__).split(".")[-1][:-2])
</code></pre>

<p>This gives the following output:</p>

<pre><code>instance.__class__ = &lt;class '__main__.Foooo'&gt;
Just the class name: Foooo
</code></pre>

<p>Is there something simpler than</p>

<pre><code>str(instance.__class__).split(".")[-1][:-2]?
</code></pre>

<p>I'm in Python 3.2 if that helps...</p>
