Set macros for python