Try for html5lib only with Beautifulsoup 4 (not BeautifulSoup 3).