socket.setdefaulttimeout() is what I have used in the past and it has worked well. I think it is set in the global namespace though I could be wrong. I think it retains its value within the module it is called in. If you use it in a different module if will probably get reset though it is easy enough to test that out.
-- http://mail.python.org/mailman/listinfo/python-list