how to join components of a path when you are constructing a url in python,"urlparse.urljoin('/media/', 'js/foo.js')"