Python3 port of the stringtemplate3, as found on https://pypi.python.org/pypi/stringtemplate3.