*.c: Use Python macros rather than functions where possible.