validators.numbers: fixed comparison issues with Py2