def _delete_attributes_with_same_value(old, new):
    """Delete attributes with same value from new dict

    If new dict has same value in old dict, remove the attributes
    from new dict.
    """
    for k in old.keys():
        if k in new:
            if old[k] == new[k]:
                del new[k]
    return new
