pybind: syntax check osd metadata

Signed-off-by: Loic Dachary <loic@dachary.org>