Adding import of urlparse.