'Set the value of a variable'

def set_value(self, name, value):

    ns = self._get_reference_namespace(name)
    value = deserialize_object(value)[0]
    if isinstance(value, CannedObject):
        value = value.get_object()
    ns[name] = value
