Use urljoin to make urls. Use os.path.join to make file paths. Duh :/