def trimDict(dict, direct = True, *attrs):
    """
    Removes key:value pairs from a dict
        If a direct trim, the provided attributes will be removed from the dict
        If an indirect trim, the provided attributes will be kept, and all other 
        attributes will be deleted
    """
    if direct:
        for attr in attrs:
            if attr in dict: 
                del(dict[attr])
    else:
        for key in dict: 
            if key not in attrs:
                del(dict[key])
                
    return dict