why not just have your user subclass "soandso" and override the definition of "custom"? from soandso import soandso class MyClass(soandso): def custom(self): self.theother = 3 c = MyClass()