DEGE for python or matlab