Simply python script to check internet connection using urllib2 library