removing pep8 errors from code