Reads a stream of text from standard input and prints that input to standard output but with randomly selected words scrambled.
python scramblewords.py < infile > outfile
To learn about the command-line options scramblewords.py offers, run it with the -h option.
python scramblewords.py -h