Fix python print

Fix all print statements to use the print function for Python 3.
Also change a single <> to != .