def merge_location_dict(location_dict_list):
    """
    Takes a list of location_dicts and returns a single location_dict with all the
    users and locations. Automatically merges duplicates. Requires unique user ids/names.
    """
    assert type(location_dict_list) is list, 'Must be passed a list of dicts'
    merged_loc_dict = {}
    for loc_dict in location_dict_list:
        for user, loc in loc_dict.items():
            merged_loc_dict[user] = loc
    return merged_loc_dict
