fixed timeout values for python 2.4

Some older hosts (for example CentOS 5) are still using older python
version.
timeout value in urllib2.urlopen was added in python 2.6