Implement Bfs And Dfs In Python