ah, if you are going to compile those strings your going to have to leave the "r" in there.
a string literal prefixed with an "r" is a so-called raw string. It causes python to interpret those 's as literal backlashes, as opposed to interpreting it as the start of a character escape. If you take out the r's, his LaTeX doc conversion package is going to break. Not good.