added script to dump community structure with same interface as dump_netstats.py