'Dis- (0) or enable (default: 1) compression'

def set_compression(self, flag=1):

    if (flag not in [0, 1]):
        raise ValueError('Compression    flag    can    be    0    or    1.')
    self.header.CompressionFlags = flag
