from abc import ABC, abstractmethod class ResponseHandler(ABC): @abstractmethod def respond(self, response: str): pass