replace_dic = {'motzart': 'Mozart', 'j s bach': 'J. S. Bach'}

def correctNames(name, dic):
    return dic.get(name.lower(), name)
How to handle data correction in Django (but this isn't Django-specific!)