pySerial killing arduino program

Check this tutorial on serial comms using python: Demo of PC-Arduino comms using Python