left = min([ p[0] for p in points ])
right = max([ p[0] for p in points ])
top = min([ p[1] for p in points ])
bottom = max([ p[1] for p in points ])
left = float("+Inf")
right = float("-Inf")
top = float("+Inf")
bottom = float("-Inf")
for p in points:
left = min(left, p[0])
right = max(right, p[0])
top = min(left, p[1])
bottom = max(right, p[1])