Support BeautifulSoup 4 or 3 for compatibility
Merge pull request #43 from captin411/beautifulsoup4

Support BeautifulSoup 4 or 3 for compatibility, from captin411