I try to get all values from section in my `ini` file (via configparser) as a variable:

```
hue310section = dict(parser.items('HUE_310'))

for keys, value in hue310section.items():
    pairs = keys + ' = ' + value
    print(pairs)

```

it gave me `partnewfilepath = http://some_site:PORT/about`, but I don't know how to import this output as an python variable, that I can use `partnewfilepath` somewhere in my code. Of course one section will have more values than only one, and I want to change all that in variable. I trying to find solution but I think I miss something because my knowledge about python is not enough yet. I think I need to rebuilt my `for` statement but don't have a clue how to do it in this particular problem.

My config.ini file looks like:

```
[HUE_310]
partNewFilePath = ${common:domain}/about
otherValues = something
nextvalue = another something

```

UPDATE:

I think I need to elaborate more about what I want to achieve. In other part of my code I check version of site I want to process. If the site has, let say version 3.10 I want to get all values from section `HUE_310` from my `ini` file, and use them as python variable. Rest of my code use those variable and if the site version will change I can get values from other section from my `ini` file and get those values to python variable and use them. I assume that some variables will change from version to version and that's why I want to prepare my code to check this. Also it gives me some freedom to modify some variable if site will change.
I hope it is now more clear.