example to calculate a mean and sample variance using mapreduce with python