def pretty_print(xml_element):
    ugly_str = tostring(xml_element, 'utf-8')
    mini_dom_str = parseString(ugly_str)
    return mini_dom_str.toprettyxml(indent='\t')
def pretty_print(xml_element):
    ugly_str = tostring(xml_element, 'utf-8')
    mini_dom_str = parseString(ugly_str)
    return mini_dom_str.toprettyxml(indent='\t')