Every time the \'setattr\' magic method is called it causes an attribute error for some reason. I\'m getting an attribute error saying the \'rect\' variable