better behaved subprocesses in integration_tests.py