fixed model create error with python bindings