Embeded BeautifulSoup and html5lib