def entry_check(entry):
    """
    check if entry is a dict and has a key entry.
    If list return dict {'entry': entry}
    :param entry
    :return: entry_dict
    """
    # print("entry type:", type(entry))
    if isinstance(entry, dict):
        # print("keys:", entry.keys())
        if 'entry' in entry:
            # print("returning entry")
            # print(entry)
            return entry
        # print('not an entry list')
        # print("entry:", entry)
    else:
        # print("not a dict so wrap as list in dict with key=entry")
        return {'entry': entry}