fix error on 3.* for urlparse