import sys sys.path.append('./lib') from Pb import * for cls in Pb.__subclasses__(): print cls.__name__ cls.example_run()