Arduino+ script python

…
print ("~ Client WebLed ~")
print ("ouverture du port")
ser = serial.Serial("COM3")
ser.baudrate = 9600
#time.sleep(2)    # <-- not here please

print ("port ouvert") 
	
for device in ser:  
    try:  
        print ("Trying...",device)  
        arduino = serial.Serial(device, 9600)  
        time.sleep(2)     # <--- here instead please 
        break
…

Best,

-br