changed urllib to urllib2 to be able to use timeout arg