render tags properly with latest BeautifulSoup