According to an earlier post, re is not available n Python Scripts because they can be the source of a DOS attack. In my systems, I've decided that such attacks are an acceptable risk. I have enable re for Python Scripts in my system(s). Apparently this is a common practice. Follow the instructions in the PythonScript sources. Of course, you need source code access.