code: def remove_behaviour(self, behaviour):
          
          if not self.has_behaviour(behaviour):
              raise ValueError("This behaviour is not registered")
          index = self.behaviours.index(behaviour)
          self.behaviours[index].kill()
          self.behaviours.pop(index)
docs: Removes a behaviour from the agent.
          The behaviour is first killed.
  
          Args:
            behaviour (spade.behaviour.CyclicBehaviour): the behaviour instance to be removed