Write xml file using lxml library in Python,"str = etree.tostring(root, pretty_print=True)"