Capture C-level stdout/stderr in Python
