Small implementation improvement in linexprs.py