'If a variable is in a scope object, we need to allocate a temp and
assign the value from the temp to the variable in the scope object
after the parallel section. This kind of copying should be done only
in the outermost parallel section.'

def declare_closure_privates(self, code):

    self.modified_entries = []
    for entry in sorted(self.assignments):
        if (entry.from_closure or entry.in_closure):
            self._allocate_closure_temp(code, entry)
