There is no concept on interface in python. However you can define an abstract class. And you do this by inheriting from class called ABC. See the link bellow to know more about ABC.
https://docs.python.org/2/library/abc.html
https://docs.python.org/2/library/abc.html
class Animal(ABC): def __init__(self): super.__init__() @abstractmethod def sound(self): pass class Dog(Animal): def __init__(self): pass def sound(self): return "Im dog"