js2py/internals/base.py
def match(self, string, pos):
        '''string is of course a py string'''
        return self.pat.match(string, int(pos))
def match(self, string, pos):
        '''string is of course a py string'''
        return self.pat.match(string, int(pos))
string is of course a py string