def prettify(self, elem):
from xml.etree import ElementTree<EOL>from re import sub<EOL>rawString = ElementTree.tostring(elem, '<STR_LIT:utf-8>')<EOL>parsedString = sub(r'<STR_LIT>', '<STR_LIT:\n>', rawString)  <EOL>return parsedString[<NUM_LIT:1>:]<EOL>
Parse xml elements for pretty printing