def get(self, key, default=None):
        """Dict-like behaviour"""
        if type(self.attrs) == dict:
            return self.attrs.get(key, default)
        else:
            raise NotImplementedError
def get ( self , key , default = None ) : if type ( self . attrs ) == dict : return self . attrs . get ( key , default ) else : raise NotImplementedError
Dict-like behaviour