結果 : how to write a macro in python