using (de)serialization methods from ISMRMRD Python API