import serial
import sys
s = serial.Serial("/dev/ttyACM0", 115200, timeout=10)
s.write("r")
print s.read()
s.write("a" + chr(int(sys.argv[1])))