Rhino 8 can run scripts in either IronPython 2.7 or CPython 3.x. If you do not specify, I think it runs Python 2 by default. To specify one or the other, you need to add the following at the top of the script:
#! python 2 for Python 2
or #! python 3 for Python 3
In order to run non-ASCII characters in Python 2, you need to have this at the top of the script.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
In principle the default coding for Python 3 is already UTF-8, so the above is not necessary, but it can’t hurt.
The syntax error looks like you are trying to pass Python 3 formatting code while running in Python 2.