import _pyio stdout = _pyio.open(1, 'w') stdout.write('unicode ') stdout.buffer.write(b'bytes ')