Tweak for PY3 compatibility.