python: astar finalized.