>>168
class Foo(int):
__def __add__(self, other):
____return self.__class__(int(self) + other)

続きは「operator overloading in python」で検索