try:
// Connect to server and send data
sock.connect(("localhost", 1111))
sock.sendall(bytes(seed + "\n", "utf-8"))
// Receive data from the server and shut down
// length = sock.recv()
received = pickle.loads(sock.recv(2000000))
After Change
seed_check_label.text = "the words: <span class="bad-word">" + bad_words[:-1] + "</span> are not in the vocabulary. "
print("setting table area")
table_area.children = [seed_check_label,table_layout]
print("sending expand request to server")
received = send_request_to_server(seed)
res = [x[0] for x in received]
scores = [y[1] for y in received]
print("setting table data")