You don't always need the whole route. A list slice works like a string slice: checkpoints[:2] gives you the first two items, stopping before index 2. The slice is a new list; the original stays unchanged.
The supplied for loop prints every checkpoint. A step is optional: checkpoints[::2] would select every other item.
Change near_checkpoints in main.py. Run should still print the full route, followed by ['Pass', 'Bridge']. Submit when the shorter route is right.
near_checkpoints to a slice of the first two checkpoints.