[IMP] Python constraint on test_range migrated to API v8.0