I found that Python on my Mac build with narrow-build which will raise character range error when i use the re model.
So I want to install the wide-build in my Mac.S
If using Python3 upgrade to the latest version. In 3.3 and later:
The distinction between narrow and wide Unicode builds is dropped.
http://legacy.python.org/dev/peps/pep-0393/