Write the example file reliably in the readme

The previous way doesn't work on PyPy or Jython, and emits warnings in recent python3s.