>>222
__dict__という属性がないようですが。
obj = object()
obj.__dict__['foo'] = 123
を実行すると
AttributeError: 'object' object has no attribute '__dict__'
というエラーがでます。