Merge "Upgrade the 'stack' script to python3."