'List all the available key pair objects.
:rtype: ``list`` of :class:`.KeyPair` objects'

def list_key_pairs(self):

    user_id = self.connection.request('/profile.json').object['user']['id']
    response = self.connection.request(('/users/%s/ssh_keys.json' % user_id))
    ssh_keys = []
    for ssh_key in response.object:
        ssh_keys.append(self._to_key_pair(ssh_key['ssh_key']))
    return ssh_keys
