There should be a convenient and standard way to read and write from the trio process's stdin/stdout/stderr streams. (Note that this is different from talking to the stdin/stdout/stderr of child ...
Which program is pickling and why? That seems like a very strange thing to do in this situation. The only time to pickle something is if you need to represent a non-string object on disk, but Python ...