fix urlopen for py3k