Python: resample on a rolling basis

visit shbcf.ru