Port to Python3.
Python 3 compatibility. Thanks to @richardkiss.
Version bump to 0.1.2.