Standard Deviation Function In Python Syntax For Loop