added charset to python template