結果 : how to pass a callback function in python