1d Fdtd Python Code