# https://stackoverflow.com/questions/2220699/whats-the-difference-between-eval-exec-and-compile >>> g = dict() >>> l = dict() >>> exec('global a; a, b = 123, 42', g, l) >>> g['a'] 123 >>> l {'b': 42}