python bindings: Merged several small fixes