code: def _parse_years(years):
      
      result = []
      for part in years.split(','):
          if '-' in part:
              a, b = part.split('-')
              a, b = int(a), int(b)
              result.extend(range(a, b + 1))
          else:
              a = int(part)
              result.append(a)
      return result
docs: Parse string of ints include ranges into a `list` of `int`
  
      Source: https://stackoverflow.com/a/6405228/1307974