Updated DFS/BFS Python.