Make compatible with Python3

Mostly by fixing up print statement syntax
Make compatible with Python3

Mostly by fixing up print statement syntax