This is my loop to check the equality of STR counts, csv list is a list storing data of the csv file and STRlist is a list storing all the STRs. It prints the wrong name, I guess it has something to do with the for loops.
for i in range(len(csvlist)):
for j in range(len(STRlist)):
if csvlist[i][STRlist[j]] == longest_match(seqreader, STRlist[j]):
print(csvlist[i]['name'])
return
print("No Match")