Python: recursion in scheme and python