Compressing Python dictionary objects before storing in json S3 files.