Fix pushing data into template toolkit variables