flow_stats.CookieFlowStats: use iteritems
flow_stats.CookieFlowStats: rearrange "matches" for loops