def get_used_fs(flow_space):
    forbidden_keys = ["id","dpid","direction","port_number_s", "port_number_e", "exp_id","_state"]
    intersections_return = list()
    intersection_dicts = list()
    for flow in flow_space:
        intersection = dict()
        for key in flow.__dict__.keys():
            if key in forbidden_keys:
                continue
            else:
                intersection[key] = flow.__dict__[key]
        if intersection_dicts not in intersection:
            intersection_dicts.append(intersection)
    for intersection in intersection_dicts: 
        int_fs = intersection_fs()
        for key in intersection.keys():
            setattr(int_fs, key, intersection[key])
        intersections_return.append(int_fs) 
    return intersections_return
dataset/ETHPy150Open fp7-ofelia/ocf/optin_manager/src/python/openflow/optin_manager/opts/autofsgranter.py/get_used_fs/swapped operands of `not in`