Python doesn't really have interfaces as separate from classes. You can use the abc module to get a similar effect. Discussion on that method and on some others is here.
Sign up to request clarification or add additional context in comments.
Comments
-1
Since python is a dynamically typed language it would seem silly to try this. The notion of interfaces really only makes sense in a statically typed language, in python you call a method on an object and find out at runtime if the object given actually implements the method.