def __new__(metatype, name, bases, namespace): cls = type.__new__(metatype, name, bases, namespace) cls.surrogate = identify_object(cls) return cls
def _serialize_value(self, value): return identify_object(value)