socket to send a huge array of int from ESP32 to Linux Python Socket server

Hi all.

I’m trying to build 2 codes.
1 socket client on the ESP32 dev board to send an array of 700 numbers ( int(2) ) to a linux python server

My code works well with strings but I do not know how to modify is to send this array instead of string

Python side

import socket

s = socket.socket()

s.bind(('0.0.0.0', 8090 ))
s.listen(0)

count=0;

while True:

    client, addr = s.accept()

    while True:
        content = client.recv(4096)

        content = content.decode('utf-8')

        if len(content) ==0:
           break

        else:
            print(content)

    count=count+1
    print("Streamed IMG:" + str(count))
    client.close()

ESP32 side

#include <WiFi.h>
 
const char* ssid = "ssid_network";
const char* password = "password";
 
const uint16_t port = 8090;
const char * host = "192.168.128.xxx";


 
void setup()
{
 
  Serial.begin(115200);
 
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.println("...");
  }
 
  Serial.print("WiFi connected with IP: ");
  Serial.println(WiFi.localIP());
 
}
 
void loop()
{
    WiFiClient client;
 
    if (!client.connect(host, port)) {
 
        Serial.println("Connection to host failed");
 
        delay(500);
        return;
    }
 
    Serial.println("Connected to server successful!");
 
    client.print("tagada");
 
    Serial.println("Disconnecting...");
    client.stop();
 
    delay(500);
}

How do I modify the code in python to receive the array and in the ESP32 code to send the array ?