Update walking_connected_component.py