Code to transmit data to the arduino using serial communication. Blinks the red LED on the arduino the number of times specified in the python code.