Python code to implement abstract high-level node/neuron dynamics