Is possible to "register" support for serialize other kind of non trivial python object like `pathlib.Path` --> serialized as `str`?