Adding initial implementation of ternary functions to pyJvsip