Variable file usage in python

If i have a variable file (arguments.py):
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
else:
return variables2

And I run test with parameter --variablefile arguments.py:two .\test.robot

I have a python file database.py

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

Should I import arguments.py in database.py?

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

I think I solved this with this:
BuiltIn().get_variable_value(’${VAR}’),