Updated nest.py