Update notelib.py