code: def lock(self, key, client):
          
  
          self.key = key
          self.client = client
docs: Set the key that will be used to ensure messages come from one party
  
          Args:
              key (string): The key used to validate future messages
              client (string): A string that will be returned to indicate who
                  locked this device.