add test de / serialization from / to python

add test de / compress from / to python