python: Take advantage of Python "x < y < z" syntax.