Fixed nntrainer.py

Still only accurate up to the second decimal place. Must figure out how
to increase accuracy.