Fix import error problem caused by xml.etree.ElementTree.ParseError issue; pep8 fixes