Ecological pattern analysis in Python