Update nnets.py