use python-stack