def getNextClosestPoint(self, points, point):
        """ After point 'point' get the next closest point
        to the end point from list of points """

        points2 = self.sortPoints(points)
        idx = points2.index(point)

        try:
            return points2[idx+1]
        except:
            return None
 After point 'point' get the next closest point
        to the end point from list of points 
recipes/Python/496884_Amaze__objectoriented_maze_generatorsolver/recipe-496884.py