StringIO from compat in process.py.