Added test for python serialize