def dictFromList(data_list):
    """Returns a dict given a list.

        - Dict created from a list where list contains alternating key, value
        pairs.
        - ex: [key1, value1, key2, value2] returns: {key1:value1, key2:value2}
    """
    data_dict = {}
    for i in range(0, len(data_list) - 1, 2):
        if data_list[i] in data_dict:
            data_dict[data_list[i]] = data_dict[data_list[i]
                ] + ' ' + data_list[i + 1]
        else:
            data_dict[data_list[i]] = data_list[i + 1]
    return data_dict
