code: def lock_area(self, code, index):
          
          logger.debug("locking area code %s index %s" % (code, index))
          return self.library.Srv_LockArea(self.pointer, code, index)
docs: Locks a shared memory area.