Oh my god, how embarrassing. the r'' notation is to create raw string <http://www.swc.scipy.org/lec/glossary.html#gdef-raw_string> I thought it was some form of blessing a string into a regular expression class.