code: def match(self, string, pos):
          '''string is of course a py string'''
          return self.pat.match(string, int(pos)f match(self, string, pos):
          '''string is of course a py string'''
          return self.pat.match(string, int(pos))
docs: string is of course a py string