def picklechops(chops):
 value = zlib.compress(dumps(chops))
 encoded = base64.encodestring(value)
 return encoded.strip()

def picklechops ( chops ) : value = zlib . compress ( dumps ( chops ) ) encoded = base64 . encodestring ( value ) return encoded . strip ( )
pickles and base64encodes its argument chops .