Work in progress. I moved the legacy scipy.* functions to np.* and put all imports on top of the file.
scipy.*
np.*
Unclear where that misc module is coming from.
misc