Python3 compatibility.