def _eval_cond(cond):
 if isinstance(cond, bool):
  return cond
 return _condsimp(cond.doit())

def _eval_cond ( cond ) : if isinstance ( cond , bool ) : return cond return _condsimp ( cond . doit ( ) )
re-evaluate the conditions .