Add Python 3 support.

(And by "Add Python 3 support.", I mean: add the bare minimum amount of code
required to get ctk usable in Python 3 with PyParallel.)