C Recursive Function Example Python