Inspired by this very presentation, I recently knocked together a library for munging text streams in Python, rather than calling through to sed and grep.
If anyone's interested, the code's here: https://github.com/inglesp/munger.py
If anyone's interested, the code's here: https://github.com/inglesp/munger.py