def scaleContour(pol, scale):
	# Scale up the polygon relative to its center
	cx = 0
	cy = 0
	for i in range(pol.npoints):
		cx += pol.xpoints[i]
		cy += pol.ypoints[i]

	cx /= pol.npoints
	cy /= pol.npoints

	aff = AffineTransform(1, 0, 0, 1, -cx, -cy)
	aff.preConcatenate(AffineTransform(scale, 0, 0, scale, 0, 0))
	aff.preConcatenate(AffineTransform(1, 0, 0, 1, cx, cy))

	tmp = Area(pol)
	tmp.transform(aff)
	return M.getPolygons(tmp)[0]