Create _recursion example in Python