'Pull all the references identifiers into the local scope.'

def pull_locals(self, frame):

    for name in frame.identifiers.undeclared:
        self.writeline(('l_%s    =    context.resolve(%r)' % (name, name)))
