Spell check algorithm outputs everything instead of just the typos Python