global exited_vehicles
if len(exited_vehicles) == 0:
output = "-1"
else:
output = ":".join([str(e) for e in exited_vehicles])
conn.send(output)
// clear the list
After Change
data = conn.recv(2048)
// send the next vehicle
conn.send(str(entered_vehicles[0]))
del entered_vehicles[0]
// send a negative response
send_message(conn, in_format="i", values=(1,))