Update stack2py.py