def decompress_gzip(data):
    f = StringIO()
    f.write(data)
    f.seek(0)
    g = GzipFile(fileobj=f, mode='rb')
    return g.read()
def decompress_gzip(data):
    f = StringIO()
    f.write(data)
    f.seek(0)
    g = GzipFile(fileobj=f, mode='rb')
    return g.read()