The arcgisscripting.pyd is the same file used in both Server and 64bit BG.
Thats the error I suspected you were getting. Its 32bit trying to call into 64bit. Some wire, somewhere has been crossed and its trying to use the wrong libraries.
Are you running a script tool out of process? If so, can you try running in process?