Add python 3 (3.3 - 3.4) compatibility.