Clone of mispy's bioversity script from Ruby to Python