Python 3 full compatibility

Using BeautifulSoup4 for Python 3 compatibility, otherwise PIP installation crashes because of BeautifulSoup 3.x legacy print statement in use.