fixed using urllib2 under python3