>    resources["latex"].setdefault({})
> AttributeError: 'str' object has no attribute 'setdefault'