'Set a watchpoint on the Python bytecode instruction pointer and try
to finish the frame'

def python_step(self, stepinto):

    output = gdb.execute('watch    f->f_lasti', to_string=True)
    watchpoint = int(re.search('[Ww]atchpoint    (\\d+):', output).group(1))
    self.step(stepinto=stepinto, stepover_command='finish')
    gdb.execute(('delete    %s' % watchpoint))
