import serial.tools.list_ports
print("Available ports:", [p.device for p in serial.tools.list_ports.comports()])