b'' b'foobarfo' b'foobarfoobar' b'foobarfoobar' b'foo' OSError OSError writing bytearray(b'foobar') flushed flushed