nnet.py initial commit