Modify Variable Outside Function Python Code Example