Get a list of custom classes in Python?
<p>Is there a way to get a list of classes defined by the user only?</p>

<p>So far I am able to display a list of all classes in a module with the following:</p>

<pre><code>inspect.getmembers(sys.modules[__name__])
</code></pre>

<p>The problem is that I get a list special methods and other stuff.
Thank you.</p>
