service = build('your_api', 'your_api_version', http=http,
    discoveryServiceUrl=
    'https://yourapp.appspot.com/_ah/api/discovery/v1/apis/{api}/{apiVersion}/rest'
    )
Consuming GAE Endpoints with a Python client