Start on python 3 compatibility.