Added support for BeautifulSoup 4