Modify Variable Outside Function In Python