correction to Python 3 urlparse import & usage