__contains__ doesn't work for range objects