Added tox support for local development testing.
pep8-ify source code (excluding test_main.py) and add to Travis and tox scripts