[FIX] Bugfix on test_range Python constraint