Adding logicOps and Compop in python API