Fix urlparse import in python3