Python3 compatibility.

I got the tests here running under both python2 and python3.

It requires a new dependency on 'six', a module used to ease maintaining
python2/3 code bases.