given_string = "ayznobcyn"
correction_list = [{"wrongs":['x','y','z'],"true":'x'},{"wrongs":['m','n','o'],"true":'m'},{"wrongs":['q','r','s','t'],"true":'q'}]

processed_string = ""
true_char = ""

for s in given_string:
	for correction in correction_list:
		true_char=s
		if s in correction['wrongs']:
			true_char=correction['true']
			#print s," is in ",correction['wrongs']
			#print "true char is ",true_char
			break
	#print "tru_char outside ",true_char		
	processed_string+=true_char

print given_string
print processed_string
