[Bug 747134] Python subprocesses are not thread-safe