'Switch the base url scheme.'

def _switch_baseurl_scheme(self):

    base_url_list = list(urlparse.urlparse(self.base_url))
    base_url_list[0] = ('https' if (base_url_list[0] == 'http') else 'http')
    bad_url = urlparse.urlunparse(base_url_list)
    return bad_url
