pattern.py is a little pattern matching script that I wrote which got me interested.