Python 2.7 implementation and example of the A* algorithm.