If you want to do a one-off and have AC power, use the Pi. If you want to make a billion of these and fit them in a tiny box with 4 AA batteries, the AVR is going to be a better choice. But Linux + Python is easier to program than AVR firmware, so it's going to take a lot of units before the AVR pays for its difficult software development with its reduced parts cost. (Really, you should be using ARM, not AVR. It costs the same but it's a modern architecture.)
But...cost on it is going to be ~$50. ($35 + $12 for a wifi chip). That's getting close to the cost of the wifi shield, and if you already know the arduino platform, then I would stick with it.
I don't know, for instance, if PWM is yet support on the raspi (or ever will be, since it's not an RTOS)