Add command line interface for out.py

Hi,
 
I add a command line interface for out.py , which get message from stdin pipe or command args.

Hope it helps.