'Get the value of a variable'

def get_value(self, name):

    ns = self._get_current_namespace()
    value = ns[name]
    try:
        publish_data({'__spy_data__': value})
    except:
        value = None
        publish_data({'__spy_data__': value})
