Is it possible to pass a method as a parameter to a method?
self.method2(self.method1) def method1(self): return 'hello world' def method2(self, methodToRun): result = methodToRun.call() return result