Add tox environment to check for flake8/pep8 issues and fixed several PEP8 issu...

...es
Do we need to list the dependencies on `pep8` and `pyflakes`? I believe `pip` automatically resolves these when we install `flake8`.