Python: added new implementation of girvan newman