Corrected typos affecting python 3.x compatibility.