for community in partition.keys()  ??
little easier to understand