fix for python3 (no urllib2 any more)