def parse_keqv_list(l):
    parsed = {}
    for elt in l:
        k, v = elt.split('=', 1)
        if v[0] == '"' and v[-1] == '"':
            v = v[1:-1]
        parsed[k] = v
    return parsed
Parse list of key=value strings where keys are not duplicated.
dataset/ETHPy150Open babble/babble/include/jython/Lib/urllib2.py/parse_keqv_list