pothos-python: tweak serialization exception handling
pothos-java: work on serialization hooks