Variable file usage in python

If i have a variable file (
variables1 = {‘scalar’: ‘Scalar variable’,
‘LIST__list’: [‘List’,‘variable’]}
variables2 = {‘scalar’ : ‘Some other value’,
‘LIST__list’: [‘Some’,‘other’,‘value’],
‘extra’: ‘variables1 does not have this at all’}

def get_variables(arg):
if arg == ‘one’:
return variables1
return variables2

And I run test with parameter --variablefile .\test.robot

I have a python file

How can I access/read the correct value “extra” in my python file?

Should I import in

Can it be read what is the parameter in use (“two”) when test is started?

I think I solved this with this: