def __init__(self, remote_url, target_appid, extra_headers, normal_stub):
    """Constructor.

    Args:
      remote_url: The URL of the remote_api handler.
      target_appid: The appid to intercept calls for.
      extra_headers: Headers to send (for authentication).
      normal_stub: The standard stub to delegate most calls to.
    """
    self.remote_url = remote_url
    self.target_appid = target_appid
    self.extra_headers = extra_headers or {}
    if 'X-appcfg-api-version' not in self.extra_headers:
      self.extra_headers['X-appcfg-api-version'] = '1'
    self.normal_stub = normal_stub
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/datastore_admin/remote_api_put_stub.py/DatastorePutStub.__init__/original