imported urlparse for python 3