The SHO Taurus is 3.4L not 3.9L.
It is basically a 2.5 V6 with two extra cylinders. It uses the same 60 degree V as the V6 instead of the more normal 90 degree of most V8s. They had to add a balance shaft to smooth out the vibrations caused by the unnatural 60 degree V.
Do you have room to put the SHO V8 in a Contour? Maybe, if you put the two extra cylinders in the trunk. It might be easier to do a 3.0L conversion with a stroker kit to come up with 3.4L. At least that would fit.