text: import datetime
  
  var_process_data = {
      "038": {
          "laps": [
              {
                  "time": "23:49:08.277",
                  "id": "038",
                  "name": "F.MASSA",
                  "number": "1",
                  "lap_time": "1:02.852",
                  "avg_speed": "44",
              },
              {
                  "time": "23:50:11.447",
                  "id": "038",
                  "name": "F.MASSA",
                  "number": "2",
                  "lap_time": "1:03.170",
                  "avg_speed": "44",
              },
              {
                  "time": "23:51:14.216",
                  "id": "038",
                  "name": "F.MASSA",
                  "number": "3",
                  "lap_time": "1:02.769",
                  "avg_speed": "44",
              },
              {
                  "time": "23:52:17.003",
                  "id": "038",
                  "name": "F.MASS",
                  "number": "4",
                  "lap_time": "1:02.787",
                  "avg_speed": "44",
              },
          ]
      },
      "033": {
          "laps": [
              {
                  "time": "23:49:10.858",
                  "id": "033",
                  "name": "R.BARRICHELLO",
                  "number": "1",
                  "lap_time": "1:04.352",
                  "avg_speed": "43",
              },
              {
                  "time": "23:50:14.860",
                  "id": "033",
                  "name": "R.BARRICHELLO",
                  "number": "2",
                  "lap_time": "1:04.002",
                  "avg_speed": "43",
              },
              {
                  "time": "23:51:18.576",
                  "id": "033",
                  "name": "R.BARRICHELLO",
                  "number": "3",
                  "lap_time": "1:03.716",
                  "avg_speed": "43",
              },
              {
                  "time": "23:52:22.586",
                  "id": "033",
                  "name": "R.BARRICHELLO",
                  "number": "4",
                  "lap_time": "1:04.010",
                  "avg_speed": "43",
              },
          ]
      },
      "002": {
          "laps": [
              {
                  "time": "23:49:11.075",
                  "id": "002",
                  "name": "K.RAIKKONEN",
                  "number": "1",
                  "lap_time": "1:04.108",
                  "avg_speed": "43",
              },
              {
                  "time": "23:50:15.057",
                  "id": "002",
                  "name": "K.RAIKKONEN",
                  "number": "2",
                  "lap_time": "1:03.982",
                  "avg_speed": "43",
              },
              {
                  "time": "23:51:19.044",
                  "id": "002",
                  "name": "K.RAIKKONEN",
                  "number": "3",
                  "lap_time": "1:03.987",
                  "avg_speed": "43",
              },
              {
                  "time": "23:52:22.120",
                  "id": "002",
                  "name": "K.RAIKKONEN",
                  "number": "4",
                  "lap_time": "1:03.076",
                  "avg_speed": "44",
              },
          ]
      },
      "023": {
          "laps": [
              {
                  "time": "23:49:12.667",
                  "id": "023",
                  "name": "M.WEBBER",
                  "number": "1",
                  "lap_time": "1:04.414",
                  "avg_speed": "43",
              },
              {
                  "time": "23:50:17.472",
                  "id": "023",
                  "name": "M.WEBBER",
                  "number": "2",
                  "lap_time": "1:04.805",
                  "avg_speed": "42",
              },
              {
                  "time": "23:51:21.759",
                  "id": "023",
                  "name": "M.WEBBER",
                  "number": "3",
                  "lap_time": "1:04.287",
                  "avg_speed": "43",
              },
              {
                  "time": "23:52:25.975",
                  "id": "023",
                  "name": "M.WEBBER",
                  "number": "4",
                  "lap_time": "1:04.216",
                  "avg_speed": "43",
              },
          ]
      },
      "015": {
          "laps": [
              {
                  "time": "23:49:30.976",
                  "id": "015",
                  "name": "F.ALONSO",
                  "number": "1",
                  "lap_time": "1:18.456",
                  "avg_speed": "35",
              },
              {
                  "time": "23:50:37.987",
                  "id": "015",
                  "name": "F.ALONSO",
                  "number": "2",
                  "lap_time": "1:07.011",
                  "avg_speed": "41",
              },
              {
                  "time": "23:51:46.691",
                  "id": "015",
                  "name": "F.ALONSO",
                  "number": "3",
                  "lap_time": "1:08.704",
                  "avg_speed": "40",
              },
              {
                  "time": "23:53:06.741",
                  "id": "015",
                  "name": "F.ALONSO",
                  "number": "4",
                  "lap_time": "1:20.050",
                  "avg_speed": "34",
              },
          ]
      },
      "011": {
          "laps": [
              {
                  "time": "23:52:01.796",
                  "id": "011",
                  "name": "S.VETTEL",
                  "number": "1",
                  "lap_time": "3:31.315",
                  "avg_speed": "13",
              },
              {
                  "time": "23:53:39.660",
                  "id": "011",
                  "name": "S.VETTEL",
                  "number": "2",
                  "lap_time": "1:37.864",
                  "avg_speed": "28",
              },
              {
                  "time": "23:54:57.757",
                  "id": "011",
                  "name": "S.VETTEL",
                  "number": "3",
                  "lap_time": "1:18.097",
                  "avg_speed": "35",
              },
          ]
      },
  }
  
  list_total_time = [
      {
          "time": "23:49:08.277",
          "id": "038",
          "name": "F.MASSA",
          "number": "1",
          "lap_time": "1:02.852",
          "avg_speed": "44",
      },
      {
          "time": "23:50:11.447",
          "id": "038",
          "name": "F.MASSA",
          "number": "2",
          "lap_time": "1:03.170",
          "avg_speed": "44",
      },
      {
          "time": "23:51:14.216",
          "id": "038",
          "name": "F.MASSA",
          "number": "3",
          "lap_time": "1:02.769",
          "avg_speed": "44",
      },
      {
          "time": "23:52:17.003",
          "id": "038",
          "name": "F.MASS",
          "number": "4",
          "lap_time": "1:02.787",
          "avg_speed": "44",
      },
  ]
  
  
  var_to_list = [
      {
          "time": "23:49:08.277",
          "id": "038",
          "name": "F.MASSA",
          "number": "1",
          "lap_time": "1:02.852",
          "avg_speed": "44",
      },
      {
          "time": "23:49:10.858",
          "id": "033",
          "name": "R.BARRICHELLO",
          "number": "1",
          "lap_time": "1:04.352",
          "avg_speed": "43",
      },
      {
          "time": "23:49:11.075",
          "id": "002",
          "name": "K.RAIKKONEN",
          "number": "1",
          "lap_time": "1:04.108",
          "avg_speed": "43",
      },
      {
          "time": "23:49:12.667",
          "id": "023",
          "name": "M.WEBBER",
          "number": "1",
          "lap_time": "1:04.414",
          "avg_speed": "43",
      },
      {
          "time": "23:49:30.976",
          "id": "015",
          "name": "F.ALONSO",
          "number": "1",
          "lap_time": "1:18.456",
          "avg_speed": "35",
      },
      {
          "time": "23:50:11.447",
          "id": "038",
          "name": "F.MASSA",
          "number": "2",
          "lap_time": "1:03.170",
          "avg_speed": "44",
      },
      {
          "time": "23:50:14.860",
          "id": "033",
          "name": "R.BARRICHELLO",
          "number": "2",
          "lap_time": "1:04.002",
          "avg_speed": "43",
      },
      {
          "time": "23:50:15.057",
          "id": "002",
          "name": "K.RAIKKONEN",
          "number": "2",
          "lap_time": "1:03.982",
          "avg_speed": "43",
      },
      {
          "time": "23:50:17.472",
          "id": "023",
          "name": "M.WEBBER",
          "number": "2",
          "lap_time": "1:04.805",
          "avg_speed": "42",
      },
      {
          "time": "23:50:37.987",
          "id": "015",
          "name": "F.ALONSO",
          "number": "2",
          "lap_time": "1:07.011",
          "avg_speed": "41",
      },
      {
          "time": "23:51:14.216",
          "id": "038",
          "name": "F.MASSA",
          "number": "3",
          "lap_time": "1:02.769",
          "avg_speed": "44",
      },
      {
          "time": "23:51:18.576",
          "id": "033",
          "name": "R.BARRICHELLO",
          "number": "3",
          "lap_time": "1:03.716",
          "avg_speed": "43",
      },
      {
          "time": "23:51:19.044",
          "id": "002",
          "name": "K.RAIKKONEN",
          "number": "3",
          "lap_time": "1:03.987",
          "avg_speed": "43",
      },
      {
          "time": "23:51:21.759",
          "id": "023",
          "name": "M.WEBBER",
          "number": "3",
          "lap_time": "1:04.287",
          "avg_speed": "43",
      },
      {
          "time": "23:51:46.691",
          "id": "015",
          "name": "F.ALONSO",
          "number": "3",
          "lap_time": "1:08.704",
          "avg_speed": "40",
      },
      {
          "time": "23:52:01.796",
          "id": "011",
          "name": "S.VETTEL",
          "number": "1",
          "lap_time": "3:31.315",
          "avg_speed": "13",
      },
      {
          "time": "23:52:17.003",
          "id": "038",
          "name": "F.MASS",
          "number": "4",
          "lap_time": "1:02.787",
          "avg_speed": "44",
      },
      {
          "time": "23:52:22.586",
          "id": "033",
          "name": "R.BARRICHELLO",
          "number": "4",
          "lap_time": "1:04.010",
          "avg_speed": "43",
      },
      {
          "time": "23:52:22.120",
          "id": "002",
          "name": "K.RAIKKONEN",
          "number": "4",
          "lap_time": "1:03.076",
          "avg_speed": "44",
      },
      {
          "time": "23:52:25.975",
          "id": "023",
          "name": "M.WEBBER",
          "number": "4",
          "lap_time": "1:04.216",
          "avg_speed": "43",
      },
      {
          "time": "23:53:06.741",
          "id": "015",
          "name": "F.ALONSO",
          "number": "4",
          "lap_time": "1:20.050",
          "avg_speed": "34",
      },
      {
          "time": "23:53:39.660",
          "id": "011",
          "name": "S.VETTEL",
          "number": "2",
          "lap_time": "1:37.864",
          "avg_speed": "28",
      },
      {
          "time": "23:54:57.757",
          "id": "011",
          "name": "S.VETTEL",
          "number": "3",
          "lap_time": "1:18.097",
          "avg_speed": "35",
      },
  ]
  
  var_data_result = {
      "038": {
          "code": "038",
          "name": "F.MASSA",
          "number_laps": 4,
          "best_lap": datetime.datetime(1900, 1, 1, 0, 1, 2, 769000),
          "avg_speed": 44.0,
      },
      "033": {
          "code": "033",
          "name": "R.BARRICHELLO",
          "number_laps": 4,
          "best_lap": datetime.datetime(1900, 1, 1, 0, 1, 3, 716000),
          "avg_speed": 43.0,
      },
      "002": {
          "code": "002",
          "name": "K.RAIKKONEN",
          "number_laps": 4,
          "best_lap": datetime.datetime(1900, 1, 1, 0, 1, 3, 76000),
          "avg_speed": 43.25,
      },
      "023": {
          "code": "023",
          "name": "M.WEBBER",
          "number_laps": 4,
          "best_lap": datetime.datetime(1900, 1, 1, 0, 1, 4, 216000),
          "avg_speed": 42.75,
      },
      "015": {
          "code": "015",
          "name": "F.ALONSO",
          "number_laps": 4,
          "best_lap": datetime.datetime(1900, 1, 1, 0, 1, 7, 11000),
          "avg_speed": 37.5,
      },
      "011": {
          "code": "011",
          "name": "S.VETTEL",
          "number_laps": 3,
          "best_lap": datetime.datetime(1900, 1, 1, 0, 1, 18, 97000),
          "avg_speed": 25.333333333333332,
      },
  }
  