fix misc pep8 errors

Fix misc pep8 errors mentioned by flake8 tool