fix python3, urlparse