Upgrades to BeautifulSoup 4 (for potential Python 3 compatibility).