Recursive Lambda Function Python Example