'Convert a string from :func:`random_urlsafe_str()` to six.binary_type.
:type s: six.text_type
:rtype: six.binary_type'

@classmethod
def random_urlsafe_str_to_bytes(cls, s):

    s = str(s)
    return base64.urlsafe_b64decode((s + '=='))
