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