code: def print_results(matches):
      
      output = ""
      for n, match in enumerate(matches):
          matched_text = match[0][:40]+"..." if len(match[0]) > 40 else match[0]
          search_result = match[1]
          if search_result.uri==surf.ns.EFRBROO['F10_Person']:
              label = unicode(search_result)[:40]+"..." if len(unicode(search_result)) > 40 else unicode(search_result)
              print("\n{:5}) {:50} {:40} (Matched: \"{}\")\n".format(n+1, label, search_result.get_urn(), matched_text))
          elif search_result.uri==surf.ns.EFRBROO['F1_Work']:
              label = "{}, {}".format(search_result.author, search_result)
              label = label[:40]+"..." if len(label) > 40 else label
              print("\n{:5}) {:50} {:40} (Matched: \"{}\")\n".format(n+1, label, search_result.get_urn(), matched_text))
docs: :param matches: a list of tuples.