import sys, inspect

def print_classes():
    for name, obj in inspect.getmembers(sys.modules[__name__]):
        if inspect.isclass(obj):
            pass
How can I get a list of all classes within current module in Python?