cleaning and lazy imports
move escape and unescape functions to xml_utils.py