A python implementation of doT.js