Update connectedComponents.py