code: def deflate_write_block(fo, block_bytes):
      
      # The first two characters and last character are zlib
      # wrappers around deflate data.
      data = compress(block_bytes)[2:-1]
  
      write_long(fo, len(data))
      fo.write(data)
docs: Write block in "deflate" codec.