class BaseBox(object):
    pass


class Token(BaseBox):
    def __init__(self, name, value, source_pos=None):
        BaseBox.__init__(self)
        self.name = name
        self.value = value
        self.source_pos = source_pos

    def __eq__(self, other):
        return self.name == other.name and self.value == other.value

    def gettokentype(self):
        return self.name

    def getsourcepos(self):
        return self.source_pos

    def getstr(self):
        return self.value


class SourcePosition(object):
    def __init__(self, idx, lineno, colno):
        self.idx = idx
        self.lineno = lineno
        self.colno = colno

class BaseBox(object):
    pass


class Token(BaseBox):
    def __init__(self, name, value, source_pos=None):
        self.name = name
        self.value = value
        self.source_pos = source_pos

    def __eq__(self, other):
        return self.name == other.name and self.value == other.value

    def gettokentype(self):
        return self.name

    def getsourcepos(self):
        return self.source_pos

    def getstr(self):
        return self.value


class SourcePosition(object):
    def __init__(self, idx, lineno, colno):
        self.idx = idx
        self.lineno = lineno
        self.colno = colno

Drop the __init__ call to object.__init__, RPython doesn't like it and it doesn't doa nything
Drop the __init__ call to object.__init__, RPython doesn't like it and it doesn't doa nything
