Solving, locals (). The update (dict) dictionary into the corresponding variable can be, but how to make these variables can be defined in the class, I would like to use class as the namespace calls these variables rather than global call, locals (), update (dict) method to add variables cannot be declared object member variable or class member variable, and there is no way to directly call the method in the class, globals (), update (dict) method in the global variables in the class to which this declaration is still not a member variable, nor as global variables of the entire file, what can you do so?