Update examples.py

sys.stdout is not a callable object.