So, I have a python program that uses pySerial to talk to my arduino uno through the serial port:
upload_array = [0,1,0