It looks like the file-like object returned by xopen() for Gzip compressed files misses the flush() method.
AttributeError: 'PipedGzipWriter' object has no attribute 'flush'
This would be very helpful to have, as well as easy to implement, as gzip.open's file-like object supports the flush() operation.