Py3k compatibility.