Using Macro In Python Code