Analysis of Fourier series using Python Code