def timedelta_filter(dates, timedelta):
    """
    Make sure there is a minimum time delta between each date in the given list
    """
    filtered_dates = [dates[0]]
    for date in sorted(dates[1:]):
        if date - filtered_dates[-1] > timedelta:
            filtered_dates.append(date)
    return filtered_dates