def urlsafe_b64encode(s):
return b64encode(s).translate(_urlsafe_encode_translation)<EOL>
Encode a string using the URL- and filesystem-safe Base64 alphabet.

    Argument s is the string to encode.  The encoded string is returned.  The
    alphabet uses '-' instead of '+' and '_' instead of '/'.