Spell checking program in Python