etree library fixes