Make it work with BeautifulSoup instead of pyquery - so we don't need lxml