code: def rename(self, old_key, new_key):
          
          return lib.zhashx_rename(self._as_parameter_, old_key, new_key)
docs: Reindexes an item from an old key to a new key. If there was no such
  item, does nothing. Returns 0 if successful, else -1.