Make the search work with BeautifulSoup and beautifulsoup4

Use beautifulsoup4 if both products are installed.
Use the shortcut for find_all() so that BeautifulSoup 3.2.1 also works.