Script to collapse spin categories for obtaining graviton prefit normalisation constant