Optimize Your Python Code Efficiently Check If Words Exist In A Lexicon