Katy Perry brings some rare plot to The Simpsons