結果 : create a callback function in python