black: add ClosingBuffer and TeeReadCloser