More Python 3 compat fixes

print is no longer a statement. Fix print -> print().