this takes the frames array returned by tbframes

def tbfuncs(frames):
  'this takes the frames array returned by tbframes'
  return ['%s:%s:%s'%(os.path.split(f.f_code.co_filename)[-1],f.f_code.co_name,f.f_lineno) for f in frames]