def rect_from_sides(left, top, right, bottom):
  """Returns list of points of a rectangle
  defined by it's `left`, `top`, `right`, and `bottom`
  coordinates, ordered counter-clockwise."""
  return [
    (left,  bottom),
    (right, bottom),
    (right, top   ),
    (left,  top   ),
  ]