Python 3 compatibility for stdin_example.py.