Not sure what you mean by "other libraries". If it was something you had to install separately I'd understand, but the re module comes as part of Python. import re should work just as well as import sys.
Interesting that there appears to be two string functions that do exactly the same thing. Kind of breaks the rule from PEP 20 -- The Zen of Python - "There should be one-- and preferably only one --obvious way to do it."
remodule is built in.remodule comes as part of Python.import reshould work just as well asimport sys.