queue_stats.py updated for new statistic format returned from endpoint