My implemenation of A* pathfinding in Python