adds pep8 checks and fixes some pep8 problems