Update stacks.py