Add real-number comparator function on python test template