Standard Deviation Function In Python Def