Removed BeautifulSoup dependency and replaced with xml.etree.ElementTree