Simple python templates and patterns.