SpectralVariance: fixed possible import bug

    - moved scipy import into function to avoid it as a package dependency