Moving Block Bootstrap Python Code