Python 3 compatibility

Tox conifg included as a side effect.