import base64
f = open('/dev/ttyACM1','w+a')
f.write('AT+CUSD=1,"*102#",15\r\n')
while True:
line = f.readline()
if len(line) == 0:
continue
else:
if line.startswith('+CUSD'):
print base64.b16decode(line[10:line.rfind('"')]).decode('utf-16-be')
break
else:
print line