code: def fix_tree(tree, a_id_lookup, out):
      
      if check(out) is False and check(tree) is True:
          tree = open(tree).read()
          for line in open(a_id_lookup):
              id, name, header = line.strip().split('\t')
              tree = tree.replace(id+':', name+':')
          out_f = open(out, 'w')
          print(tree.strip(), file=out_f)
      return out
docs: get the names for sequences in the raxml tree