common_words = frozenset(('if', 'but', 'and', 'the', 'when', 'use', 'to',
    'for'))
title = 'When to use Python for web applications'
How to efficiently filter a string against a long list of words in Python/Django?