More forgiving urlparse imports