def create_dict_keyed_by_field_from_items(items, keyfield):
    """ given a field and iterable of items with that field
        return a dict keyed by that field with item as values
    """
    return {i.get(keyfield): i for i in items if i and keyfield in i}