Correct some pep8 errors in the python helpers