Add preliminary python 3 support.