moved logic from view to classes
fix flake8 issues and add tox.ini for flake
specify tox.ini for this project
Merge pull request #4 from frecar/refactor_to_classes

moved logic from view to classes