t/t-*.py: Use the `WriteBuffer.contents' property.