def parse_authorization_header(authorization_header):
    """Parse an OAuth authorization header into a list of 2-tuples"""
    auth_scheme = 'OAuth '.lower()
    if authorization_header[:len(auth_scheme)].lower().startswith(auth_scheme):
        items = parse_http_list(authorization_header[len(auth_scheme):])
        try:
            return list(parse_keqv_list(items).items())
        except (IndexError, __HOLE__):
            pass
    raise ValueError('Malformed authorization header')
dataset/ETHPy150Open splunk/splunk-app-twitter/twitter2/bin/oauthlib/oauth1/rfc5849/utils.py/parse_authorization_header