import sys
import types
this_module = sys.modules[__name__]
[x for x in [getattr(this_module, x) for x in dir(this_module)] if type(x) ==
    type]
How can I dynamically get the set of classes from the current python module?