raise an KeyError with an argument string "Key %r not found in '%s'", substitute '%s' with name and self.__class__.__name__.
raise KeyError ( "Key %r not found in '%s'" % ( name , self . __class__ . __name__ ) )