power spectrum calculation done with scipy instead of numpy