[python] How do I pass a method as a parameter in Python