Test command-line programs from Python by giving example input and output