Update stack.py

Added quote support