Adds any number of attributes to an existing class.

    :param name: Name.
    :type name: unicode
    :param bases: Bases.
    :type bases: list
    :param attributes: Attributes.
    :type attributes: dict
    :return: Base.
    :rtype: object

def base_warfare(name, bases, attributes):
    """
    Adds any number of attributes to an existing class.

    :param name: Name.
    :type name: unicode
    :param bases: Bases.
    :type bases: list
    :param attributes: Attributes.
    :type attributes: dict
    :return: Base.
    :rtype: object
    """

    assert len(bases) == 1, "{0} | '{1}' object has multiple bases!".format(__name__, name)

    base = foundations.common.get_first_item(bases)
    for name, value in attributes.iteritems():
        if name != "__metaclass__":
            setattr(base, name, value)
    return base