pep8 fixes to html_helper.py