I am working on an algorithm in python that needs to modify concrete (mixed-integer nonlinear) pyomo models. In particular, I need to know which variables are present in a
model.con1.body._args gives you just this list of variables.
model.con1.body._args