py binding wrapper to the cpp scripts