code: def _iostats_dict(header, stats):
      '''
      Transpose collected data, average it, stomp it in dict using header
  
      Use Decimals so we can properly calc & round, convert to float 'caus' we can't transmit Decimals over 0mq
      '''
      stats = [float((sum(stat) / len(stat)).quantize(decimal.Decimal('.01'))) for stat in zip(*stats)]
      stats = dict(zip(header, stats))
      return statf _iostats_dict(header, stats):
      '''
      Transpose collected data, average it, stomp it in dict using header
  
      Use Decimals so we can properly calc & round, convert to float 'caus' we can't transmit Decimals over 0mq
      '''
      stats = [float((sum(stat) / len(stat)).quantize(decimal.Decimal('.01'))) for stat in zip(*stats)]
      stats = dict(zip(header, stats))
      return stats
docs: Transpose collected data, average it, stomp it in dict using header
  
      Use Decimals so we can properly calc & round, convert to float 'caus' we can't transmit Decimals over 0mq