def __init__(self, **kwargs):
    super(ExternalModule, self).__init__(**kwargs)

    self._instance = None  # Protected by self._condition.
    self._wsgi_server = None  # Protected by self._condition.
    # Whether the module has been stopped. Protected by self._condition.
    self._suspended = False

    self._condition = threading.Condition()  # Protects instance state.

    # Serializes operations that modify the serving state of the instance.
    self._instance_change_lock = threading.RLock()

    self._change_watcher_thread = threading.Thread(
        target=self._loop_watching_for_changes, name='Change Watcher')

  # Override this method from the parent class
Initializer for ManualScalingModule.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/module.py/ExternalModule.__init__