def list_intersection(left, right):
    '''
    Returns the intersection between two lists.

    Useful for defining a model's subspace variables with new added variables.

    Parameters
    ----------
    left : list
        a list you'd like to add to.

    right : list
        a list of things your trying to add

    Returns
    -------
    list :
        a list of the intersection between the passed in left and right lists.

    '''
    return list((str(right[i]) for i in xrange(0, len(right))
                if left is False in right[i]))
dataset/ETHPy150Open agconti/KaggleAux/kaggleaux/utils.py/list_intersection/swapped operands of `in`