def split(header):
    match = headerValue.match(header)
    if not match:
        return (None, None)
    return match.group(1).lower(), header[match.end():]
Splits value part and parameters part,
dataset/ETHPy150Open mailgun/flanker/flanker/mime/message/headers/parametrized.py/split