Add python 3 support

I use the `six` module, as in the `python3-experimental` branch.
This closes #103.