Update spatial_weighted_stats.py