Neural Network with backpropagation implemented in python