Please, use urlparse.urljoin instead of direct concatenation.