def set(self, path, value, version=-1):
        """ wraps the default set() and handles encoding (Py3k) """
        value = to_bytes(value)
        super(XClient, self).set(path, value, version)
wraps the default set() and handles encoding (Py3k)