python with timeout. setdefaulttimeout(10) sock = socket. ho