1d Wave Equation Python