fix python bind (unfinished)