For me specifying the endpoint location resolved the issue :
service = googleapiclient.discovery.build("ml", "v1", client_options={"api_endpoint": "https://europe-west1-ml.googleapis.com"})