Can you update the docstring please to mention the compression argument and the possible values?

I think we want the default to be gzip if possible