Use xml.ElementTree instead of lxml