Create cumulative_threshold.py