Add tox.ini, fix various pep8 violations