class MyClass: def method(self): self.another() self.another() def another(self): pass inst = MyClass() MyClass.method(inst) MyClass().method()