[lisp.py] replaced old reference implementation