Hopfield Neural Network Python Example