Add example for exponential recursion in Python