updated python bindings to reflect the latest changes