install tox only for python testing
fix tests for python2.6