Select Exterior Only script

Does anyone have a script that will select only the faces that are visible and part of the "exterior" of a model? For example I have a model of a tractor, I want to be able to select the heads of the bolts that are visible, but not the threads of the bolts that are interior. Any tricks? lemme know --mark