def get_mixins_attrs(mixins):
    """
    Merges attributes from all mixins
    """
    attrs = {}
    if mixins:
        # just make all those mixin classes inherit in to one
        Mixin = type('Mixin', tuple(mixins), {})
        for k in dir(Mixin):
            if not k.startswith('__') or k in ['__unicode__', '__str__']:
                attrs[k] = getattr(Mixin, k)
    return attrs