def flatten_multidict(multidict):
return dict([(key, value if len(value) > <NUM_LIT:1> else value[<NUM_LIT:0>])<EOL>for (key, value) in multidict.iterlists()])<EOL>
Return flattened dictionary from ``MultiDict``.