def nonEmpty(v):
    """
    If v is a container (tuple, list or dictionary), return None if it is empty,
    otherwise return v itself.
    """
    if isinstance(v,(tuple,list,dict)):
        if len(v) == 0: return None
    return v