import base64


def b64_decode(s):
    """
    Decode input string with base64url safe without padding scheme.
    """
    mod = len(s) % 4
    if mod >= 2:
        s += (4 - mod) * "="
    return base64.urlsafe_b64decode(s)