Adapt print statements in examples for Python 3 compatibility
Merge pull request #1204 from ysitu/print

Adapt print statements in examples for Python 3 compatibility