Python 3 compat with urllib2