def keyval_list_to_dict(l):
    """
    Converts a list of key=value strings to a dictionary.
    :param l: the list
    :return: the dictionary
    """
    stripped = lambda s: s.strip('"').strip("'")
    d = {}
    for e in l:
        keyval = e.split("=", 2)
        if len(keyval) == 2:
            d[stripped(keyval[0])] = stripped(keyval[1])
    return d