The classic way to build a constraint or list of constraints in Pyomo is to use a rule
E.g.
def ConSatisfyDemand(model,p): return sum(model.OutQty