Accept any iterable in convert_packets_to_messages