Python 3 compatibility.
Adding python 3 to the build.