add helper for passing collected bytes output through to sys.stdout