Capture C-level stdout/stderr pipes in Python.
