Fixed nntrainer.py and which scipy minimization function was being used.