結果 : how to make a callback function in python