Change xml library from minidom to lxml