def deltas(last, now):
    """Return the change in counter values (accounting for wrap-around)."""
    return {
        xy: RouterDiagnostics(*((n - l) & 0xFFFFFFFF
                                for l, n in zip(last[xy], now[xy])))
        for xy in last
    }
def deltas ( last , now ) : return { xy : RouterDiagnostics ( * ( ( n - l ) & 0xFFFFFFFF for l , n in zip ( last [ xy ] , now [ xy ] ) ) ) for xy in last }
Return the change in counter values (accounting for wrap-around).