XModules/XBlocks don't generally support dictionary access. Was this supposed to be `setattr(xmodule, key, value)`?