little fix in collapse_subspecies and write topology into newick files