print(u"##### Statistics #####")
print(json.dumps(stats, indent=4, separators=(u",", u": ")))
print(u"##### Statistics #####")
print(json.dumps(stats, indent=4, separators=(u",", u": ")))
stats = stats[sorted(stats.keys())[-1]]
lost_a = stats[port_0][u"opackets"] - stats[port_1][u"ipackets"]
lost_b = stats[port_1][u"opackets"] - stats[port_0][u"ipackets"]
stats = stats[sorted(stats.keys())[-1]]
lost_a = stats[port_0][u"opackets"] - stats[port_1][u"ipackets"]
lost_b = stats[port_1][u"opackets"] - stats[port_0][u"ipackets"]