added wilf invariant to gt.py