standard deviation formula in python without numpy