def _in_region(point, bounds):
	"""Is the point in the union of the given rectangles?"""
	for i in range(len(bounds['x1s'])):
		x_min = min(bounds['x1s'][i], bounds['x2s'][i])
		x_max = max(bounds['x1s'][i], bounds['x2s'][i])
		y_min = min(bounds['y1s'][i], bounds['y2s'][i])
		y_max = max(bounds['y1s'][i], bounds['y2s'][i])
		if point[0] > x_min and point[0] < x_max and point[1] > y_min and \
				point[1] < y_max:
			return True
	return False