avoid ImportError of urlparse