Fix for aggregate_scores_in_intervals.py broken in 95bf71620d50c6d81248eef2001a7dc156ae1088.