Use beautifulsoup 3 for compatiblity with lxml