python tests for marshaling