def parse_stream(stream):
    out = deque()
    for header in unfold(split(stream)):
        out.append(parse_header(header))
    return out
Reads the incoming stream and returns list of tuples
dataset/ETHPy150Open mailgun/flanker/flanker/mime/message/headers/parsing.py/parse_stream