Python script to run tests on programs and output of those tests