class Foo(gtk.ListStore):

    def __init__(self, *args):
        super(Foo, self).__init__(*args)
self._args = args

def __reduce_ex__(self, proto=None):
    return type(self), self._args, self.__getstate__()

def __getstate__(self):
    return 'foo'

def __setstate__(self, state):
    print(state)
x = Foo(str)
pickle.loads(pickle.dumps(x))
Сброс подкласса gtk.ListStore с помощью pickle