Upgrading BeautifulSoup to version 4