Modernize Python 2 code to get ready for Python 3
* Use __print()__ function in both Python 2 and Python 3
* __print()__ is a function in Python 3.
* Old style exceptions --> new style in Python 3
* Python 3 treats old style exceptions as syntax errors but new style exceptions work as expected in both Python 2 and Python 3.