qemu.py: avoid writing to stdout/stderr