def create_unique_name(prefix, names, separator='_'):
    """ Creates a name starting with 'prefix' that is not in 'names'. """
    i = 1
    name = prefix
    while name in names:
        name = prefix + separator + str(i)
        i += 1
    return name
