A* pathfinder implemented in python