fixed bug in palin_recursive.py