change psd function and use matplotlib implementation

Gives less noisy, more smoothed results