code: def _atomicModification(func):
          
          def wrapper(*args, **kwargs):
              self = args[0]
              with self._qpart:
                  func(*args, **kwargs)
          return wrapper
docs: Decorator
          Make document modification atomic