Python Test Connection To Url