Continuous Hopfield neural network in Python