title = 'When to use Python for web applications'
title_words = set(title.lower().split())
keywords = title_words.difference(common_words)
print(keywords)
How to efficiently filter a string against a long list of words in Python/Django?