def none_if_empty(tup):
    """Returns None if passed an empty tuple
    This is helpful since a SimpleVar is actually an IndexedVar with
    a single index of None rather than the more intuitive empty tuple.
    """
    if tup is ():
        return None
    else:
        return tup