def results_to_names(results, include_synonyms=True):
    """Takes OLS term query returns list of all labels and synonyms"""
    out = []
    for t in results['_embedded']['terms']:
        out.append(t['label'])
        if include_synonyms and t['synonyms']:
            out.extend(t['synonyms'])  # Consider being more conservative
                                       # and only selecting synonyms
                                       # of a certain type
    return out