Uncommented the last 2 lines (langid = ... and print)
Executed this from command prompt, on macos:
python3 fun_langid.py
Error:
SyntaxError: Non-UTF-8 code starting with '\xd1' in file .../fun-langid/fun_langid.py on line 76, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details