Python 3 and 2 now supported

I may have missed a few print statements but now runs on python 3 and
2.