Update nest.py

edit: typo