def InstanceName(BaseName, NameList):
    """
	Return a new name that is not in the list.
	"""
    N = 0
    while BaseName + '_' + str(N) in NameList:
        N += 1
    return BaseName + '_' + str(N)
