結果 : how to write macros in python