You are working too hard in creating your string literal.The Python Language Reference Manual says:
2.4.2. String literal concatenation
Multiple adjacent string literals (delimited by whitespace), possibly using different quoting conventions, are allowed, and their meaning is the same as their concatenation. Thus, "hello" 'world' is equivalent to "helloworld". This feature can be used to reduce the number of backslashes needed, to split long strings conveniently across long lines, [...]
Also, the output is hard to really comprehend. So, may I humbly submit...