the Arduino only blinks the LED when it receives a command from the Python script.
Arduino Code
This code will wait for a command from the Python script to blink the LED:
void setup() {
// Initialize the built-in LED pin as an output
pinMode(LED_BUILTIN, OUTPUT);
// Start serial...