Corrected bug in 'replaceComplexMacros' method by adding a '.encode('string-escape')'.
Oops -- removed output.