May I recommend that you apply GiNaC patch bcd95dd6 to pynac source code?It seems to apply fine and is really a missed optimization.