It may interest you all to know that python already has macros:
And its predecessor
And its predecessor:
https://macropy3.readthedocs.io/en/latest/
And its predecessor:
These macro libraries are incredibly powerful already, without any direct support from the python core dev team or cpython itself
The only major limitation is that because these operate as import-time ast transformers, they can only operate on python-parseable code (meaning, for example, you can’t use them to implement new operators like ‘??’)