code: def instances(self):
          
          definstance = lib.EnvGetNextInstance(self._env, ffi.NULL)
  
          while definstance != ffi.NULL:
              yield Instance(self._env, definstance)
  
              definstance = lib.EnvGetNextInstance(self._env, definstance)
docs: Iterate over the defined Instancees.