I would change that to `import urlparse`. 
https://mozweb.readthedocs.org/en/latest/coding.html#import-statements