fixed error in nn7.py