[python] What is the Python equivalent of static variables inside a function?