def _wrap(x, serializeFunc, encodeFunc=base64.urlsafe_b64encode, compress=True):
return encodeFunc(serializeFunc(x, compress))<EOL>
Wraps an element @x by serializing and then encoding the resulting bytes.