def main () :   
    "get S expressions and evaluate them. Print the results"
    global Alist
    while 1 :
        try    : s = lispio.getSexp()
        except : break
        try    : print lispio.putSexp(eval(s ,Alist))
        except : print '???'
    def POST(self):
	Alist=lisp.Alist
	global data1
	
        form = my_form()
        form.validates()
	#f = open('test.txt','w')
        data1 = form.value['textfield']
	
	#f.write(str(data1))
	try:
	    s=lispio.getSexp()
	except:
	    return "Invalid Input"
        #f.write(str(s))
	#f.close()
	try:
	    list1=lispio.putSexp(eval(s,Alist))
	#return str(list1)
	
	    return str(list1)
	except:
	    return "???"