snippets.analyze_phylogeny: Prettified script, removed unnecessary computations.

Now only the level the user is interested in gets analyzed,
instead of additional lower levels in the previous version.