Update notestack.py