Pirates cool off Blue Jays 3-1