import sys import shelve s = shelve.open(sys.argv[1]) print s # {'count': 10000, 'tasks': defaultdict(, {'m5-2-1.local-31671': 10000}), 'extra': 256, 'receive': 1148.0290439128876, 'submit': 4.298105001449585, 'participants': 1, 'order': 5} for k in sorted(s): run = s[k]['stats'] print run['tasks'] print run['participants'], run['receive'] / run['count']