code: def key_rename(self, key_name, new_key_name, **kwargs):
          
          args = (key_name, new_key_name)
          return self._client.request('/key/rename', args, decoder='json',
                                      **kwargs)
docs: Rename a keypair
  
          .. code-block:: python
  
              >>> c.key_rename("bla", "personal")
              {"Was": "bla",
               "Now": "personal",
               "Id": "QmeyrRNxXaasZaoDXcCZgryoBCga9shaHQ4suHAYXbNZF3",
               "Overwrite": False}
  
          Parameters
          ----------
          key_name : str
              Current name of the key to rename
          new_key_name : str
              New name of the key
  
          Returns
          -------
              dict : List of key names and IDs that have been removed