Update communityDetection.py