python3 doesn't like https://domain:443... stupid python3. added a
conditional to set self.base_url without the port number if https is
specified as the protocol