Delete stray commas.  They turn reduced_variables['foo'] into a tuple, which, of course,
breaks whatever tries to use it.