Python 3 compatibility

There are missing build requires to successfully test this under python3 but python2 tests pass.