Add compatibility layer for Python 3's urlopen