try catch urlparse for python3