import urlparse for python3