Add a print function for Python 2.5.
Fix Python 3 syntax error.