added utf8 directives to python files

Hi, i ran into some unicode trouble with your template, so i added a utf8 directive to the python files.