fixed error checking for Bio, dendropy