Implement the pytwine script: parse command line options, process a document, exit with an appriorate exit status.
pytwine
if no sourcefile given, or “-” given, use stdin
if no outfile given, or “-” given, use stdout