'Removes all current selections and adds the specified selections
NB When calling this method, it is important that all current
selections be either replaced or simply included as-is. Otherwise,
these selections will be lost
:param view:
the current view
:param new_regions:
a list of sublime.Regions that should be selected'

def update_selections(self, view, new_regions):

    sel = view.sel()
    sel.clear()
    for region in new_regions:
        sel.add(region)
