try to work around the urlencode/urlopen problem in python3.3