Also, urljoin doesn't appear to work the way you think it does.