def cleanse_triples(response):
    """
    Parameters
    ----------
    response : list of dicts
        JSON response from SPARQL query.
    Returns
    -------
    response : list of dicts
        substitute keys 's' for 'subject, 'p' for 'predicate' and 'o' for 'object'.
    """
    for triple in response:
        triple['subject'] = triple.pop('s')
        triple['predicate'] = triple.pop('p')
        triple['object'] = triple.pop('o')
    return response