update for BeautifulSoup 4
Merge pull request #1 from alxndr/master

update for BeautifulSoup 4