Added python macros