`os.path.join` may work, but the "right" way is to use `urlparse.urljoin()`.