Update smoothing.py