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

...es
The default filename pattern is `*.py`. Do you want to explicitly add it to the flake8 call? I think it will never change in the future. But it should be `flake8 DIRECTORY`. The `*` is not needed.