how to fix trianglepy errors in sage