'iterates over the row and make each field unique'

def make_fields_unique(self, fields):

    for i in range(0, len(fields)):
        for j in range((i + 1), len(fields)):
            if (fields[i] == fields[j]):
                fields[j] += "'"
