[python] Access a function variable outside the function without using "global"