def METHOD_NAME(self):
    for packet in self.packet_window:
        if (self.latest_packet_time - packet.arrival_timestamp >
                self.window_time):
            self.bytes = self.bytes - packet.packet_size
            self.packet_window.remove(packet)