Bring ``results`` into a format that is accepted by write-math.com. This
    means using the ID for the formula that is used by the write-math server.

    Examples
    --------
    >>> results = [{'symbolnr': 214,
    ...             'semantics': '\\triangleq',
    ...             'probability': 0.03}, ...]
    >>> fix_writemath_answer(results)
    [{123: 0.03}, ...]

def fix_writemath_answer(results):
    """
    Bring ``results`` into a format that is accepted by write-math.com. This
    means using the ID for the formula that is used by the write-math server.

    Examples
    --------
    >>> results = [{'symbolnr': 214,
    ...             'semantics': '\\triangleq',
    ...             'probability': 0.03}, ...]
    >>> fix_writemath_answer(results)
    [{123: 0.03}, ...]
    """
    new_results = []
    # Read csv
    translate = _get_translate()

    for i, el in enumerate(results):
        writemathid = get_writemath_id(el, translate)
        if writemathid is None:
            continue
        new_results.append({'symbolnr': el['symbolnr'],
                            'semantics': writemathid,
                            'probability': el['probability']})
        if i >= 10 or (i > 0 and el['probability'] < 0.20):
            break
    return new_results