Recursive Aws Lambda Function Python