rm xml_declaration=True from xml.etree.Element.write(), because python2.6 do not surpport