Doc improvements: simplify Python code, show shell one-liner alternative

As discussed via email.

I haven't tried to run the app locally to make sure I haven't messed up the markup.

I haven't tested the new Python code either, but I have successfully used `sys.stdin.read()` in my own scripts to slurp multiline text blobs before.