Avoid comparing non-numeric confidence values to numbers in Python 3.