A python program to solve differential equations