when I get values from dictionary, I need them to store in variables
Your question is not very clear, but try so
Use the init global block to make a new global variable.