That just means the urllib.socket module doesn't have any function named setdefaulttimeout in it.
It appears there might be something wrong with your socket module as mine has it: py> import urllib py> f = urllib.socket.setdefaulttimeout py> f <built-in function setdefaulttimeout> -- http://mail.python.org/mailman/listinfo/python-list