If you work with strings in your Python scripts and you're writing obscure logic to process them, then you need to look into regex in Python. It lets you describe patterns instead of writing ...
JANINE: Big crowd in tonight, Jeff. JEFF: Including Bob the superfan. Bob here has never actually seen Jess perform. JANINE: Let’s help him picture her in his head - we can use metaphors and similes.