Python3: set Template.py output file encoding.