#/usr/bin/env python import sys, re, os.path from string import Template