def collect_parameters(rest):
    parameters = deque()
    p, rest = match_parameter(rest)
    while p:
        parameters.append(p)
        p, rest = match_parameter(rest)
    return parameters
Scans the string and collects parts
dataset/ETHPy150Open mailgun/flanker/flanker/mime/message/headers/parametrized.py/collect_parameters