Continuing python 3 compatibility.