code: def translate(self, closed_regex=True):
          u
          if closed_regex:
              return self.regex
          else:
              return translate(self.pattern, closed_regex=False, **self.flags)
docs: u"""
          Returns a Python regular expression allowing to match
          :return: