serializer similar to json or msgpack but written in pure python