Analysis of ecological patterns in Python