cherry picked from old scipy repo
moved cwt out of scipy structure
moved cwt out of scipy structure pt. 2