for key in ( packet_length dict.keys() and mean packet_length.keys() and packet_first_last timestamp.keys() and packet_count_dict.keys() code example
Example: python convert dict_keys to list
d = {1:1, 2:2, 3:3}
d_keys_list = list(d.keys())
d = {1:1, 2:2, 3:3}
d_keys_list = list(d.keys())