Some scripts for resampling statistics in Python