Added tox configuration and pep8-ify source code