Use xml.etree instead of elementtree