import serial
ser = serial.Serial('/dev/ttyUSB0',9600)
# s = [0,1]
while True:
	# 

	read_serial=ser.readline()
	ser.write("oi")
	# s[0] = str(int (ser.readline(),16))
	# print s[0]
	print read_serial
	print "Writted" 

s = [0, 1]

while True:
    read_serial = ser.readline()
    #s[0] = str(int(ser.readline(), 16))
    #print s[0]
    print read_serial


import serial
ser = serial.Serial('/dev/ttyUSB0',9600)
# s = [0,1]
while True:
	# 

	read_serial=ser.readline()
	ser.write("oi")
	# s[0] = str(int (ser.readline(),16))
	# print s[0]
	print read_serial
	print "Writted" 

s = [0, 1]

while True:
    read_serial = ser.readline()
    #s[0] = str(int(ser.readline(), 16))
    #print s[0]
    print read_serial


# s = [0,1] # # s[0] = str(int (ser.readline(),16)) # print s[0] #s[0] = str(int(ser.readline(), 16)) #print s[0]