update python template engine