I added an abstraction for this in #361.  I think you should remove these lines in favor of that fix.  Also you forgot to do this for `__delitem__()` so I couldn't merge it as is anyway :)