Add support for Python3

Ditto.