some pep8 bug fixes