slow response when a command is set to the Arduino UNO

I'm using the standardfirmata sketch and I'm have troubles in that when I send a command via python to turn on a led it takes up to 30 seconds for the Arduino to turn the led on, simple code below

from firmata import * a = Arduino('COM3', baudrate=57600) a.pin_mode(2, firmata.OUTPUT) a.digital_write(2, firmata.HIGH)

I would think that the led would turn on really quick, not take over 30 seconds. What am I doing wrong.

Chuck S.