Fix tobytes() broken by previous commit.

Python 2.1 str objects don't have a .decode() method.
Add support for tox
tox.ini: We don't support pypy; tox no longer supports Python 2.5; add comment