Implementation of BFS, DFS, Uniform, and A* search in Python