standard deviation formula python code