Python 3: use urllib.parse.urlparse

In the urllib package, 'parse' is a subpackage, and urlparse is the actual routine.