def get_template(name):
text = re.sub(r'<STR_LIT:\r\n>', r'<STR_LIT:\n>', name)<EOL>text = re.sub(r'<STR_LIT>', r'<STR_LIT>', text)<EOL>return text<EOL>
Still unsure about best way to do this, hence cruft.