Variance Formula In Python