Mixins are classes that are expected to be inherited by other classes that should have certain properties. It's something similar to an interface, but it provides partial concrete implementation rather than sheer abstract.
In [1]: class MyMixin:
...: def get_evens(self):
...: return [x for x in self.elements if x % 2 == 0]
...:
In [2]: class MyClass(MyMixin):
...: def __init__(self, elements):
...: self.elements = elements
...:
In [3]: mc = MyClass([1, 2, 3, 4, 5])
In [4]: mc.get_evens()
Out[4]: [2, 4]
There's a problem with a readability and code cleareness as you can see.