'Scans a given backtrace stack frames, returns a single
quadraple of [filename, line, function-name, text] of
the single, deepest, most interesting frame.
Interesting being::
inside the galaxy source code ("/lib/galaxy"),
prefreably not an egg.'

def get_interesting_stack_frame(self, stack_frames):

    for (_filename, _line, _funcname, _text) in reversed(stack_frames):
        idx = _filename.find('/lib/galaxy/')
        if (idx != (-1)):
            relative_filename = _filename[idx:]
            return (relative_filename, _line, _funcname, _text)
    return stack_frames[(-1)]
