結果 : pass class method as parameter python