adding some python macros