This recipe is no longer necessary as all of the functionality described is now a part of scikit-bio!

You can find information on computing Faith's PD and Weighted/Unweighted UniFrac in the diversity section of the scikit-bio docs.

For a thorough analysis of working with microbial diversity, see the Studying Biological Diversity chapter of An Introduction to Applied Bioinformatics.