python in macros ?

looking to make a macro thusly:

op(/ouija01/window1).par.winopen = 1

is Python macro-savvy ?

Also looking for an explanation of root vs. Component macro dialog

Macros are tscript based, no python support.

Root macros are located in /local/macros and can be run from anywhere in the project. Component macros are located in componentname/local/macros and can be run from anywhere inside that component.