code: def closed(self):
          
          closed = (len(self.points) > 2 and
                    self.points[0] == self.points[-1])
          return closed
docs: If the first point is the same as the end point
          the entity is closed