Bfs Algorithm Using Python To Interact