This is largely code-cleanup, but we should simply have a subclass of Popen where we replace stderr/stdout where appropriate with our own subclass of io.BufferedIOBase where read/etc. take an optional timeout=None argument.
<rdar://problem/77795973>