Fix broken scripts due to changes in WigMath tools