expr.py can now use this function rather than duplicating it there (search for L = [target])