return self

def __sub__(self, i):
    return self.__add__(-i)

def get_next(self):
    return self + 1

def get_last(self):
    return self - 1

def __repr__(self):
    return str(self.contract)
Implementing a custom counting system in Python