'Wraps a tokenize stream to systematically modify start/end.'

def wrap_toks(self, block, lineno, indent):

    tokens = tokenize.generate_tokens(self.gen_lines(block, indent).__next__)
    for (type, value, (line0, col0), (line1, col1), line_text) in tokens:
        line0 += (lineno - 1)
        line1 += (lineno - 1)
        (yield (type, value, (line0, col0), (line1, col1), line_text))
