Set the key value pair in a local or global namespace

def set(self, key, value, glob=False):
        """Set the key value pair in a local or global namespace"""
        ns = self.namespace(key, glob)
        self.keyring.set_password(ns, key, value)