Training A Neural Network In Python