update for BeautifulSoup 4