Fixed a lot of print statements for Python 3.