def generateUniqueNameSimiarToExisting(prefix, existingNames):
	"""
	Given a name prefix known to exist in a list of existing names, figure out
	a new name that doesn't exist in the existing list yet is similar to the
	rest.  This is primarily accomplished by appending a 2-zero-padded number 
	to the end of the prefix.
	"""
	nameIndices = list()
	for en in existingNames:
		numberLop = en[len(prefix):]
		nameIndices.append(int(numberLop))
	nameIndices.sort()
	if not nameIndices or min(nameIndices) != 1:
		return "%s%02d" % (prefix, 1)
	for i in range(len(nameIndices)):
		if len(nameIndices) == i+1:
			return "%s%02d" % (prefix, nameIndices[i]+1)
		if nameIndices[i+1] != nameIndices[i]+1:
			return "%s%02d" % (prefix, nameIndices[i]+1)