minor pep8 fixes to helpers