Complex Sinusoid and DFT in Python