This look strange and my „off the records” linter complains about it.

Does the API provide something like? 

variables.set(variable_name, value)