a Python module which computes the integral of a linear function over a convex region in 2d, described either by its extrema, or by a system of linear inequalities