Simple python parser to validate email templates