adding moving_window.py