Py3 support

WIP