Retrieving Module and Class of Current Python Method with Inheritance and Dynamic Creation