We import urllib.error and urllib.parse at some places without using them.
urllib.error
urllib.parse
/cc @kushal