'execute a deferred value for serialization purposes.'

def __getstate__(self):

    d = self.__dict__.copy()
    v = self.value
    if self.callable:
        v = self.callable()
        d[u'callable'] = None
    d[u'value'] = v
    return d
