With Matematica this integral gives me 3. wolfram alpha With integrate.tplquad I get -3. This is Matematica code.
Integrate[1-x, {(0,2),(0,3-1.5*x),(0
Double-check the tplquad docstring; you'll see that the signature of the function f is f(z, y, x). So it looks like your integrand should be:
f
f(z, y, x)
f = lambda x, y, z: 1 - z