def _iostats_dict(header, stats):
 stats = [float((sum(stat) / len(stat)).quantize(decimal.Decimal('.01'))) for stat in zip(*stats)]
 stats = dict(zip(header, stats))
 return stats

def _iostats_dict ( header , stats ) : stats = [ float ( ( sum ( stat ) / len ( stat ) ) . quantize ( decimal . Decimal ( '.01' ) ) ) for stat in zip ( * stats ) ] stats = dict ( zip ( header , stats ) ) return stats
transpose collected data .