Better C macros in Python