How to pass variables in the game engine to a newly loaded .blend?
You could dump it to a file.

a.blend

with open('/tmp/mydata', 'w') as f:
    f.write(a_setting)


b.blend

with open('/tmp/mydata', 'r') as f:
    b_setting = f.read()