No need for ```iterkeys()``` here ```for key in self_defn.attributes``` is preferred, I believe.