require html5lib for bs4 for better compatibility with apache