Fix for minor typos in stack.py

Change-Id: I09846ba58d3483d95373c685dd0df34561dcd982
Merge "Fix for minor typos in stack.py"