dem Differential Equation Model code. Originally from my submission to TADPOLE Challenge (MATLAB: to be translated to python, then improved). Work very much in progress!