Escape python code to fix python 3.3 build issue on Mac

Turns out that len is an m4 macro.