def fix_float(att):
    """ Python 2/3 compatibility fix for str(float). Reference:
    https://github.com/unified-font-object/ufoLib/issues/19
    """
    try:
        att = list(att)
        if isinstance(eval(str(att[1])), float):
            att[1] = repr(att[1])
    except:
        pass
    return att
