I\'ve got a python application that opens a pygame game, plays it 20 times, closes the game, and then saves the results (the game is a physical dynamics simulation). This works