fix py3 build