def get_frames(nframe, lineno_delta):
    frames = []
    frame = sys._getframe(1)
    for index in range(nframe):
        code = frame.f_code
        lineno = (frame.f_lineno + lineno_delta)
        frames.append((code.co_filename, lineno))
        lineno_delta = 0
        frame = frame.f_back
        if (frame is None):
            break
    return tuple(frames)
def get_frames(nframe, lineno_delta):
    frames = []
    frame = sys._getframe(1)
    for index in range(nframe):
        code = frame.f_code
        lineno = (frame.f_lineno + lineno_delta)
        frames.append((code.co_filename, lineno))
        lineno_delta = 0
        frame = frame.f_back
        if (frame is None):
            break
    return tuple(frames)