[WIP] cpp serialization with python binding