for name, value in pairs:
    if name in parsed_result:
        parsed_result[name].append(value)
else:
    parsed_result[name] = [value]
return parsed_result
Returning intermediate results from function in Python