Making urlparse import work with python 3