title: Python: find all classes which inherit from this one?
body: <p>Is there any way in python to query a namespace for classes which inherit from a particular class?  Given a class <code>widget</code> I'd like to be able to call something like <code>inheritors(widget)</code> to get a list of all my different kinds of widget.</p>