from a import A print A.__subclasses__() # [] import b # defining B # defining C print A.__subclasses__() # [, ]