Mod: basic support to make twip work with Python3