from functools import reduce


def union_regions(regions):
  """Returns the union of sublime.Region instances (using their term 'cover')"""
  return reduce((lambda maybe,region: region if maybe == None else maybe.cover(region)),regions,None)