heat equation solver python