pybind: Some fixes on semantics

this doesn't look like it needs the trailing comma