Import urlparse for urlunparse function