Regarding Python3: by default, all lines are always Unicode. The u prefix has lost its function and has been removed from the language.
However, starting with version 3.3, u again accepted (and ignored) to simplify porting from Python2.
So, one way to make your strings compatible with Python3 and Python2 is to require version 3.3+ released 3 years ago.
source share