Python Passing Method As Argument