Bfs Algorithm Using Python For Automation