fix for compatibility with new beautiful soup version