Fix 2.7 bug where stdout is closed before the end of the program
Fix 2.7 bug where stdout is closed before the end of the program

joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument