def _get_range_tuples(data):
    """Split the ranges field from a comma separated list of start-end to a
       real list of (start, end) tuples.
    """
    ranges = []
    for r in data['ranges'].split(',') or []:
        start, end = r.split('-')
        ranges.append((start, end))
    return ranges