use BUFSIZ for all buffers in example
Python: common base class for writers