class SomeMixin(object):

    def __init__(self, *args, **kwargs):
        super(SomeMixin, self).__init__(*args, **kwargs)
for name, field in self.fields.items():
    pass
How to generically apply an override of a function to mutiple classes in python?