Fix Python examples in manual to use print(...)

Python 3 dropped support for `print` without parentheses.  The
amended examples should still work in Python 2.
4 files changed