Py3 fixes for benchmark