Added tox testing
Added configuations for flake8
Followed flake8
Added setting for TravisCI