Update urllib usage for Python 3