fix python3 allowed empty urlparse