fix py3 compile