fix py3 failures