Update cosmic ray removal using SciPy