Thanks you two. I was just thinking if it was possible.
If I really want to do this, maybe the best way is to do an interface to python of an open source project I have just discovered : maxima. So long, -- http://mail.python.org/mailman/listinfo/python-list