Finding Standard Deviation In Python Using Global Variables