Stack Diagram For Recursive Function In Python