Python Multilayer Perceptron Example Problem