Simplify numeric comparison
Sourcery refactoring id:
Consolidates any mathematical operations in a numeric comparison so there is a direct comparison of variable to number
if a + 1 < 2: do_x()
if a < 1: do_x()
This refactoring removes unnecessary clutter from the code and makes it easier to determine what a variable is being compared to.