結果 : how to patch a variable in a function python