pybind: Some fixes on semantics

is this a teardown? if so, it should probably be in the `tearDown()` method, not here