def list_wrap_remove(var):
    """
    Helper function for removing list wrapping for a single item that might be wrapped into a list

    """
    if type(var) == list and len(var) > 1:
        # If an actual list, return the list
        return var
    elif type(var) == list and len(var) == 1:
        # If a list of one item, unpack
        return var[0]
    else:
        return var