Made conversion from BeautifulSoup to ElementTree