W+M1 pyros are not much of a problem.
The problem is when the pyro has played the game for more than 5 minutes and has unlocked the flare guns. No matter what class you play, a medium level pyro with a flare gun of any kind will easily kick your ass. Even when playing sniper.