[wip] Python 3 support

Make compatibility changes required to get colorific working seamlessly on Python 3.